From: Martin Quinson Date: Fri, 11 Sep 2015 21:32:53 +0000 (+0200) Subject: [MSVC] don't load system headers within the extern "C" block X-Git-Tag: v3_12~244 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/908b2d45be446df79430f84d6940713da793100f?ds=sidebyside [MSVC] don't load system headers within the extern "C" block huhu, if this commit helps, windows is definitely my favorite porter puzzle --- 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 */