Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Load the getline prototype when it exists
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 9 Mar 2007 16:40:16 +0000 (16:40 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 9 Mar 2007 16:40:16 +0000 (16:40 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3226 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/portable.h

index 03bbd85..ab84d51 100644 (file)
@@ -16,7 +16,7 @@
 */ 
 #ifdef _WIN32
 # include "win32/config.h"
 */ 
 #ifdef _WIN32
 # include "win32/config.h"
-#  include <windows.h>
+# include <windows.h>
 #else
 #  include "gras_config.h"
 #endif
 #else
 #  include "gras_config.h"
 #endif
 #  define O_BINARY 0
 #endif
 
 #  define O_BINARY 0
 #endif
 
+#ifdef HAVE_GETLINE
+#  define _GNU_SOURCE
+#  include <stdio.h>
+#endif
+
 /****
  **** Time handling
  ****/
 /****
  **** Time handling
  ****/