Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[MSVC] don't load system headers within the extern "C" block
authorMartin Quinson <martin.quinson@loria.fr>
Fri, 11 Sep 2015 21:32:53 +0000 (23:32 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Fri, 11 Sep 2015 21:32:58 +0000 (23:32 +0200)
huhu, if this commit helps, windows is definitely my favorite porter puzzle

include/xbt/str.h

index 3307ed7..4741e73 100644 (file)
@@ -11,6 +11,8 @@
 
 #include <stdint.h> /* ssize_t */
 #include <stdarg.h>             /* va_* */
 
 #include <stdint.h> /* ssize_t */
 #include <stdarg.h>             /* va_* */
+#include <stdio.h>  /* FILE */
+#include <stdlib.h> /* size_t, ssize_t */
 #include "xbt/misc.h"
 #include "xbt/dynar.h"
 #include "xbt/dict.h"
 #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 */
  * @{
  */
 /* Our own implementation of getline, mainly useful on the platforms not enjoying this function */
-#include <stdio.h>  /* FILE */
-#include <stdlib.h> /* size_t, ssize_t */
 XBT_PUBLIC(ssize_t) xbt_getline(char **lineptr, size_t * n, FILE * stream);
 
 /* Trim related functions */
 XBT_PUBLIC(ssize_t) xbt_getline(char **lineptr, size_t * n, FILE * stream);
 
 /* Trim related functions */