X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8b730a1a7189b57671ec6ad97ae6a8f52e4b0eaf..4c04b128260c38d0d28a1fc70cd8cf02f06c15c1:/include/xbt/misc.h diff --git a/include/xbt/misc.h b/include/xbt/misc.h index 5260bce95e..529bfc6365 100644 --- a/include/xbt/misc.h +++ b/include/xbt/misc.h @@ -9,6 +9,11 @@ #ifndef XBT_MISC_H #define XBT_MISC_H +/* Define _GNU_SOURCE for getline, isfinite, etc. */ +#ifndef _GNU_SOURCE + #define _GNU_SOURCE +#endif + /* Attributes are only in recent versions of GCC */ #if defined(__GNUC__) && (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4)) # define _XBT_GNUC_PRINTF( format_idx, arg_idx ) \