Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Disable make test if memcheck, now make memcheck tests.
[simgrid.git] / include / simgrid_config.h.in
index ca6c550..82964bc 100644 (file)
@@ -26,7 +26,9 @@
 #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
 
@@ -52,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