X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c51823541276dc4b772e8c1c94dafb1291715268..9006d78ba8a08a6500c994bb8141f48376448fc4:/include/xbt/xbt_os_thread.h diff --git a/include/xbt/xbt_os_thread.h b/include/xbt/xbt_os_thread.h index 4a75754754..31e5840049 100644 --- a/include/xbt/xbt_os_thread.h +++ b/include/xbt/xbt_os_thread.h @@ -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 + #ifdef _XBT_WIN32 /* defined if this is a windows system, 32bits or 64bits) */ #include typedef DWORD xbt_os_thread_key_t; #else /* assume that every non-windows system is POSIX-compatible */ -#include typedef pthread_key_t xbt_os_thread_key_t; #endif