소스 검색

fix build with both simgrid and leveldb

Samuel Thibault 11 년 전
부모
커밋
df6757bf98
1개의 변경된 파일5개의 추가작업 그리고 5개의 파일을 삭제
  1. 5 5
      include/starpu_thread.h

+ 5 - 5
include/starpu_thread.h

@@ -18,6 +18,11 @@
 #ifndef __STARPU_THREAD_H__
 #define __STARPU_THREAD_H__
 
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
 #ifdef STARPU_SIMGRID
 #include <xbt/synchro_core.h>
 #include <msg/msg.h>
@@ -25,11 +30,6 @@
 #include <pthread.h>
 #endif
 
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
 /*
  * Encapsulation of the pthread_create function.
  */