Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Try to be consistent bewteen xbt_os_thread.h and xbt_os_thread.c
authorGabriel Corona <gabriel.corona@loria.fr>
Tue, 9 Jun 2015 23:17:37 +0000 (01:17 +0200)
committerGabriel Corona <gabriel.corona@loria.fr>
Tue, 9 Jun 2015 23:26:41 +0000 (01:26 +0200)
xbt_os_thread.h was choosing the definition of xbt_os_thread_key_t
based on _XBT_WIN32 but xbt_os_thread.h was choosing the
implementation of the corresponding code based on HAVE_PTHREAD_H. But
it is possible to HAVE_PTHREAD_H on _XBT_WIN32.

src/xbt/xbt_os_thread.c

index 63819fd..2059f2c 100644 (file)
@@ -21,8 +21,9 @@ XBT_LOG_NEW_DEFAULT_SUBCATEGORY(xbt_sync_os, xbt,
                                 "Synchronization mechanism (OS-level)");
 
 /* ********************************* PTHREAD IMPLEMENTATION ************************************ */
-#ifdef HAVE_PTHREAD_H
+#ifndef _XBT_WIN32
 
+#include <pthread.h>
 #include <limits.h>
 #include <semaphore.h>