Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Bugfix: setset cursors were incorrectly implemented. Now they work fine.
[simgrid.git] / include / simgrid_config.h.in
index 69df80b..82964bc 100644 (file)
 
 /* Use that config to declare missing elements */
 #ifdef SIMGRID_NEED_GETLINE
+#include <stdlib.h> /* size_t */
+#include <stdio.h>  /* FILE*  */
 XBT_PUBLIC(long) getline(char **lineptr, size_t * n, FILE * stream);
 #else
-#define _GNU_SOURCE
+#ifndef _GNU_SOURCE
+       #define _GNU_SOURCE
+#endif
 #include <stdio.h>
 #endif
 
@@ -50,6 +54,7 @@ XBT_PUBLIC(int) asprintf(char **ptr, const char *fmt,   /*args */
  * See asprintf()
  */
 #if defined(SIMGRID_NEED_VASPRINTF)||defined(DOXYGEN)
+#include <stdarg.h>
 XBT_PUBLIC(int) vasprintf(char **ptr, const char *fmt, va_list ap);
 #endif
 /** @brief print to allocated string