Pārlūkot izejas kodu

port r13377 from 1.1: Do not expose our pthread_barrier when building applications with MSVC

Samuel Thibault 10 gadi atpakaļ
vecāks
revīzija
16d0c341eb
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      include/starpu_thread.h

+ 1 - 1
include/starpu_thread.h

@@ -198,7 +198,7 @@ int starpu_pthread_rwlock_unlock(starpu_pthread_rwlock_t *rwlock);
  * Encapsulation of the pthread_barrier_* functions.
  */
 
-#if defined(STARPU_SIMGRID) || !defined(STARPU_HAVE_PTHREAD_BARRIER)
+#if defined(STARPU_SIMGRID) || (!defined(STARPU_HAVE_PTHREAD_BARRIER) && (!defined(_MSC_VER) || defined(BUILDING_STARPU)))
 
 #if defined(STARPU_SIMGRID) && defined(STARPU_SIMGRID_HAVE_XBT_BARRIER_INIT)
 typedef xbt_bar_t starpu_pthread_barrier_t;