Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Integrate xbt_context_init/exit to the regular module mecanism; free the xbt_binary_n...
[simgrid.git] / src / portable.h
index 4cded55..ab84d51 100644 (file)
@@ -16,7 +16,7 @@
 */ 
 #ifdef _WIN32
 # include "win32/config.h"
-#  include <windows.h>
+# include <windows.h>
 #else
 #  include "gras_config.h"
 #endif
 #  define O_BINARY 0
 #endif
 
+#ifdef HAVE_GETLINE
+#  define _GNU_SOURCE
+#  include <stdio.h>
+#endif
+
 /****
  **** Time handling
  ****/
@@ -88,9 +93,6 @@
 # endif
 #endif
 
-#ifdef _WIN32
-#define sleep _sleep /* else defined in stdlib.h */
-#endif
 
 /****
  **** Contexts