소스 검색

fix windows build

Samuel Thibault 9 년 전
부모
커밋
3a059b4f9e
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      include/starpu_thread.h

+ 2 - 0
include/starpu_thread.h

@@ -115,10 +115,12 @@ int starpu_pthread_mutex_trylock(starpu_pthread_mutex_t *mutex);
 
 #endif /* STARPU_SIMGRID, _MSC_VER */
 
+#if !defined(_MSC_VER) || defined(BUILDING_STARPU)
 int starpu_pthread_mutex_lock_sched(starpu_pthread_mutex_t *mutex);
 int starpu_pthread_mutex_unlock_sched(starpu_pthread_mutex_t *mutex);
 int starpu_pthread_mutex_trylock_sched(starpu_pthread_mutex_t *mutex);
 void starpu_pthread_mutex_check_sched(starpu_pthread_mutex_t *mutex, char *file, int line);
+#endif
 
 /*
  * Encapsulation of the pthread_key_* functions.