#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
* 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