X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmapi%2Fglapi%2Fglthread.h;h=2399abb2baeeb405bbfbc9cb6f77913a47b2fd28;hb=d5e9426b9605264608e0b1204ebf818103f1f011;hp=fc4ece7c3384e57fc8ac2bda13d3e3c54b77cd52;hpb=760451baaec42bced6ade5026546ed3759495d70;p=mesa.git diff --git a/src/mapi/glapi/glthread.h b/src/mapi/glapi/glthread.h index fc4ece7c338..2399abb2bae 100644 --- a/src/mapi/glapi/glthread.h +++ b/src/mapi/glapi/glthread.h @@ -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 */