From 908b2d45be446df79430f84d6940713da793100f Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Fri, 11 Sep 2015 23:32:53 +0200 Subject: [PATCH 1/1] [MSVC] don't load system headers within the extern "C" block huhu, if this commit helps, windows is definitely my favorite porter puzzle --- include/xbt/str.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/xbt/str.h b/include/xbt/str.h index 3307ed76b8..4741e73ef1 100644 --- a/include/xbt/str.h +++ b/include/xbt/str.h @@ -11,6 +11,8 @@ #include /* ssize_t */ #include /* va_* */ +#include /* FILE */ +#include /* size_t, ssize_t */ #include "xbt/misc.h" #include "xbt/dynar.h" #include "xbt/dict.h" @@ -27,8 +29,6 @@ SG_BEGIN_DECL() * @{ */ /* Our own implementation of getline, mainly useful on the platforms not enjoying this function */ -#include /* FILE */ -#include /* size_t, ssize_t */ XBT_PUBLIC(ssize_t) xbt_getline(char **lineptr, size_t * n, FILE * stream); /* Trim related functions */ -- 2.20.1