瀏覽代碼

fix windows build

Samuel Thibault 9 年之前
父節點
當前提交
f406ff6bf1
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/common/thread.c

+ 3 - 0
src/common/thread.c

@@ -724,6 +724,8 @@ int starpu_pthread_spin_lock(starpu_pthread_spinlock_t *lock)
 }
 #endif
 
+#if defined(STARPU_SIMGRID) || (defined(STARPU_LINUX_SYS) && defined(STARPU_HAVE_XCHG)) || !defined(STARPU_HAVE_PTHREAD_SPIN_LOCK)
+
 #if !defined(STARPU_SIMGRID) && defined(STARPU_LINUX_SYS) && defined(STARPU_HAVE_XCHG)
 int _starpu_pthread_spin_do_lock(starpu_pthread_spinlock_t *lock)
 {
@@ -808,3 +810,4 @@ void _starpu_pthread_spin_do_unlock(starpu_pthread_spinlock_t *lock)
 
 #endif
 
+#endif /* defined(STARPU_SIMGRID) || (defined(STARPU_LINUX_SYS) && defined(STARPU_HAVE_XCHG)) || !defined(STARPU_HAVE_PTHREAD_SPIN_LOCK) */