summaryrefslogtreecommitdiff
path: root/src/GLdispatch/vnd-glapi
diff options
context:
space:
mode:
authorKyle Brenneman <kbrenneman@nvidia.com>2015-06-11 13:41:29 -0600
committerKyle Brenneman <kbrenneman@nvidia.com>2015-06-11 13:41:29 -0600
commit085fb651aa48bf051a1bf53dea66272d85af823b (patch)
tree99e13e37d1748ba0da8c8b811c8f0ebd284b4ce9 /src/GLdispatch/vnd-glapi
parent302595a5e5f801be77bf9e9af8c5b168a3d91e0e (diff)
Remove pthreadFuncs from libgl.c and libopengl.c.
Anything that references the pthreadFuncs table is now #ifdef'd out in libGL and libOpenGL, so it's safe to remove again.
Diffstat (limited to 'src/GLdispatch/vnd-glapi')
-rw-r--r--src/GLdispatch/vnd-glapi/mapi/stub.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/GLdispatch/vnd-glapi/mapi/stub.c b/src/GLdispatch/vnd-glapi/mapi/stub.c
index 34ed342..25e8e23 100644
--- a/src/GLdispatch/vnd-glapi/mapi/stub.c
+++ b/src/GLdispatch/vnd-glapi/mapi/stub.c
@@ -30,11 +30,14 @@
#include <assert.h>
#include "u_current.h"
-#include "u_thread.h"
#include "entry.h"
#include "stub.h"
#include "table.h"
+#if !defined(STATIC_DISPATCH_ONLY)
+#include "u_thread.h"
+#endif
+
#define ARRAY_SIZE(x) (sizeof(x)/sizeof((x)[0]))
#define MAPI_LAST_SLOT (MAPI_TABLE_NUM_STATIC + MAPI_TABLE_NUM_DYNAMIC - 1)
@@ -220,7 +223,7 @@ stub_allow_override(void)
return !!entry_stub_size;
}
-void *stub_get_addr_by_name(const char *name)
+static void *stub_get_addr_by_name(const char *name)
{
const struct mapi_stub *stub;