Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Do not spread getline management here and there but only in simgrid_config.h.
authoralegrand <alegrand@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 15 Dec 2009 16:33:06 +0000 (16:33 +0000)
committeralegrand <alegrand@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 15 Dec 2009 16:33:06 +0000 (16:33 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@6895 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/portable.h

index b166e2c..823409c 100644 (file)
@@ -11,6 +11,7 @@
 #ifndef GRAS_PORTABLE_H
 #define GRAS_PORTABLE_H
 
 #ifndef GRAS_PORTABLE_H
 #define GRAS_PORTABLE_H
 
+#include "simgrid_config.h"
 #include "xbt/misc.h"
 /* 
  * win32 or win64 (__WIN32 is defined for win32 and win64 applications, __TOS_WIN__ is defined by xlC).        
 #include "xbt/misc.h"
 /* 
  * win32 or win64 (__WIN32 is defined for win32 and win64 applications, __TOS_WIN__ is defined by xlC).        
 #  include "gras_config.h"
 #endif
 
 #  include "gras_config.h"
 #endif
 
-/* Load this asap to make sure that GNU_SOURCE is defined on need when stdio gets loaded by some random system header */
-#ifdef HAVE_GETLINE
-#  ifndef _GNU_SOUCE
-#    define _GNU_SOURCE
-#  endif
-#  include <stdio.h>
-#endif
-
 #include <stdarg.h>
 
 #ifdef HAVE_ERRNO_H
 #include <stdarg.h>
 
 #ifdef HAVE_ERRNO_H