Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
empty portable.h and spread the include in files
[simgrid.git] / src / portable.h
index 4866871..c3ece3f 100644 (file)
 #include "simgrid_config.h"       /* what was compiled in? */
 #include "src/internal_config.h"  /* some information about the environment */
 
-#include "xbt/base.h"
-#include "xbt/misc.h"
 #ifdef _WIN32
 # include <windows.h>
 #endif
 
-#include <stdarg.h>
-#include <stdio.h>
-
-#ifdef HAVE_UNISTD_H
-#  include <unistd.h>
-#endif
-
 #ifdef HAVE_SYS_PARAM_H
 # include <sys/param.h>
 #endif
 #endif
 
 /* File handling */
-
-#include <fcntl.h>
-
 #ifdef _WIN32
-  #ifndef EWOULDBLOCK
-  #define EWOULDBLOCK WSAEWOULDBLOCK
-  #endif
-
-  #ifndef EINPROGRESS
-  #define EINPROGRESS WSAEINPROGRESS
-  #endif
-
-  #ifndef ETIMEDOUT
-  #define ETIMEDOUT   WSAETIMEDOUT
-  #endif
-
   #ifdef S_IRGRP
     #undef S_IRGRP
   #endif
   #define S_IRGRP 0
-
-  #ifdef S_IWGRP
-    #undef S_IWGRP
-  #endif
-  #define S_IWGRP 0
-#endif
-
-#ifndef O_BINARY
-#  define O_BINARY 0
-#endif
-
-/* Time handling */
-#include <sys/time.h>
-#include <time.h>
-
-/* Signals */
-#ifdef HAVE_SIGNAL_H
-# include <signal.h>
 #endif
-
-/* What we need to extract the backtrace in exception handling code */
-#ifdef HAVE_EXECINFO_H
-#  include <execinfo.h>
-#endif
-
 #endif                          /* SIMGRID_PORTABLE_H */