build: Move src/mapi/mapi/* to src/mapi/
[mesa.git] / src / mapi / glapi / glthread.h
index fc4ece7c3384e57fc8ac2bda13d3e3c54b77cd52..2399abb2baeeb405bbfbc9cb6f77913a47b2fd28 100644 (file)
@@ -1,7 +1,11 @@
 #ifndef GLTHREAD_H
 #define GLTHREAD_H
 
-#include "mapi/u_thread.h"
+#include "u_thread.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
 
 #define _glthread_DECLARE_STATIC_MUTEX(name) u_mutex_declare_static(name)
 #define _glthread_INIT_MUTEX(name)           u_mutex_init(name)
@@ -17,4 +21,8 @@
 typedef struct u_tsd _glthread_TSD;
 typedef u_mutex _glthread_Mutex;
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* GLTHREAD_H */