Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
public headers should include simgrid in a system-wide way, not a project-wide one
[simgrid.git] / src / xbt / snprintf.c
index c5fffcc..c6e841f 100644 (file)
  *   http://www.ijs.si/software/snprintf/
  */
 
+/* find vasprintf in stdio.h */
+#ifndef _GNU_SOURCE
+#  define _GNU_SOURCE
+#endif
+#include <stdio.h>
+
 #include "xbt/sysdep.h"           /* xbt_abort() */
 #include "src/internal_config.h"  /* Do we need vasprintf? */
-#include <stdio.h>
+
 #include <assert.h>
 
 #if !HAVE_VASPRINTF