diff options
author | José Fonseca <[email protected]> | 2011-11-09 10:20:51 +0000 |
---|---|---|
committer | José Fonseca <[email protected]> | 2011-11-09 10:24:37 +0000 |
commit | 63e7a4c6e5bf51d8090046ebc5adcb4207448565 (patch) | |
tree | b701753960e53fe36889273def9d28e0059445d6 /src/mapi/glapi/glthread.h | |
parent | f4b42aa5b7a3d11f839d5576b4c42406529131be (diff) |
mesa,glsl,mapi: Put extern "C" { ... } where appropriate.
Probably a several places missing, but enough to cover all headers
(in)directly included by uniform_query.cpp, and fix the MSVC build.
Diffstat (limited to 'src/mapi/glapi/glthread.h')
-rw-r--r-- | src/mapi/glapi/glthread.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mapi/glapi/glthread.h b/src/mapi/glapi/glthread.h index fc4ece7c338..1c3f4e2bf76 100644 --- a/src/mapi/glapi/glthread.h +++ b/src/mapi/glapi/glthread.h @@ -3,6 +3,10 @@ #include "mapi/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) #define _glthread_DESTROY_MUTEX(name) u_mutex_destroy(name) @@ -17,4 +21,8 @@ typedef struct u_tsd _glthread_TSD; typedef u_mutex _glthread_Mutex; +#ifdef __cplusplus +} +#endif + #endif /* GLTHREAD_H */ |