瀏覽代碼

include/starpu_thread.h: deal with msc windows compilation

Nathalie Furmento 11 年之前
父節點
當前提交
2ddb482a1b
共有 1 個文件被更改,包括 1 次插入1 次删除
  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