Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Cosmetics
authorunknown <pierre@.(none)>
Fri, 1 Jun 2012 10:23:12 +0000 (12:23 +0200)
committerunknown <pierre@.(none)>
Fri, 1 Jun 2012 10:23:12 +0000 (12:23 +0200)
2times include

include/xbt/xbt_os_thread.h

index 4a75754..31e5840 100644 (file)
@@ -10,9 +10,7 @@
 
 #include "simgrid_config.h" /* Windows or Posix */
 #include "xbt/function_types.h"
-#ifdef _XBT_WIN32
-#include "pthread.h"
-#endif
+
 SG_BEGIN_DECL()
 
 /** @addtogroup XBT_thread
@@ -26,11 +24,12 @@ SG_BEGIN_DECL()
   /** \brief Thread data type (opaque structure) */
 typedef struct xbt_os_thread_ *xbt_os_thread_t;
 
+#include <pthread.h>
+
 #ifdef _XBT_WIN32 /* defined if this is a windows system, 32bits or 64bits) */
 #include <WinDef.h>
 typedef DWORD xbt_os_thread_key_t;
 #else /* assume that every non-windows system is POSIX-compatible */
-#include <pthread.h>
 typedef pthread_key_t xbt_os_thread_key_t;
 #endif