summaryrefslogtreecommitdiffstats
path: root/src/mapi/glapi/glapi_entrypoint.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2015-03-04 19:17:57 -0700
committerBrian Paul <[email protected]>2015-03-05 06:59:43 -0700
commit18db13f586509f4fc196839886efcfd0715d8db0 (patch)
tree7804953f7a1481c9c4f07bcc58d457f995d13995 /src/mapi/glapi/glapi_entrypoint.c
parentfac77912b5faa2394e0c0a88f3862eae9d87967a (diff)
mapi: THREADS was always defined, remove it
THREADS was defined if HAVE_PTHREADS or _WIN32 was defined. That's always the case. The build would die in c11/threads.h otherwise. Reviewed-by: Matt Turner <[email protected]> Reviewed-by: José Fonseca <[email protected]>
Diffstat (limited to 'src/mapi/glapi/glapi_entrypoint.c')
-rw-r--r--src/mapi/glapi/glapi_entrypoint.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mapi/glapi/glapi_entrypoint.c b/src/mapi/glapi/glapi_entrypoint.c
index 362a8f11b40..53104ce5e58 100644
--- a/src/mapi/glapi/glapi_entrypoint.c
+++ b/src/mapi/glapi/glapi_entrypoint.c
@@ -120,11 +120,9 @@ fill_in_entrypoint_offset(_glapi_proc entrypoint, unsigned int offset)
#if defined(GLX_USE_TLS)
*((unsigned int *)(code + 8)) = 4 * offset;
-#elif defined(THREADS)
+#else
*((unsigned int *)(code + 11)) = 4 * offset;
*((unsigned int *)(code + 22)) = 4 * offset;
-#else
- *((unsigned int *)(code + 7)) = 4 * offset;
#endif
}