Browse Source

include/starpu_thread.h: deal with msc windows compilation

Nathalie Furmento 11 years ago
parent
commit
2ddb482a1b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/starpu_thread.h

+ 1 - 1
include/starpu_thread.h

@@ -239,7 +239,7 @@ int starpu_pthread_spin_lock(starpu_pthread_spinlock_t *lock);
 int starpu_pthread_spin_trylock(starpu_pthread_spinlock_t *lock);
 int starpu_pthread_spin_unlock(starpu_pthread_spinlock_t *lock);
 
-#else /* !( defined(STARPU_SIMGRID) || !defined(STARPU_HAVE_PTHREAD_SPIN_LOCK)) */
+#elif !defined(_MSC_VER) /* !( defined(STARPU_SIMGRID) || !defined(STARPU_HAVE_PTHREAD_SPIN_LOCK)) */
 
 typedef pthread_spinlock_t starpu_pthread_spinlock_t;
 #define starpu_pthread_spin_init pthread_spin_init