Browse Source

Do not expose encapsulation of pthread functions to applications built with msvc

Samuel Thibault 10 years ago
parent
commit
50432406ef
1 changed files with 2 additions and 0 deletions
  1. 2 0
      include/starpu_thread_util.h

+ 2 - 0
include/starpu_thread_util.h

@@ -21,6 +21,7 @@
 #include <starpu_util.h>
 #include <errno.h>
 
+#if !(defined(_MSC_VER) && !defined(BUILDING_STARPU))
 /*
  * Encapsulation of the starpu_pthread_create_* functions.
  */
@@ -305,5 +306,6 @@ int _starpu_pthread_rwlock_trywrlock(starpu_pthread_rwlock_t *rwlock, char *file
 			STARPU_ABORT();                                        \
 	}                                                                      \
 } while (0)
+#endif /* _MSC_VER */
 
 #endif /* __STARPU_THREAD_UTIL_H__ */