X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/108245d608bf821c8b0b748195d75b4b83f2376d..e25a4327e9e25726495b1b281bfd707ff4a392d3:/include/simgrid_config.h.in diff --git a/include/simgrid_config.h.in b/include/simgrid_config.h.in index ca6c5502e8..82964bcfa0 100644 --- a/include/simgrid_config.h.in +++ b/include/simgrid_config.h.in @@ -26,7 +26,9 @@ #include /* FILE* */ XBT_PUBLIC(long) getline(char **lineptr, size_t * n, FILE * stream); #else -#define _GNU_SOURCE +#ifndef _GNU_SOURCE + #define _GNU_SOURCE +#endif #include #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 XBT_PUBLIC(int) vasprintf(char **ptr, const char *fmt, va_list ap); #endif /** @brief print to allocated string