summaryrefslogtreecommitdiff
path: root/src/mesa/glapi/glapi.c
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2006-03-29 22:32:38 +0000
committerKristian Høgsberg <krh@redhat.com>2006-03-29 22:32:38 +0000
commit3a6d968f37683835bd92b1b853e0ac8cadd0fdef (patch)
tree7b8d5aa056b3cb00819cbb25c61bb46e8a2a4e99 /src/mesa/glapi/glapi.c
parentcec74532bf62bb0cb29ea89a34fc7ae14b70648c (diff)
Fixes to silence warnings in code generated by glapi scripts.
Diffstat (limited to 'src/mesa/glapi/glapi.c')
-rw-r--r--src/mesa/glapi/glapi.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/glapi/glapi.c b/src/mesa/glapi/glapi.c
index 6800205530..3f2ec270fe 100644
--- a/src/mesa/glapi/glapi.c
+++ b/src/mesa/glapi/glapi.c
@@ -60,7 +60,9 @@
static GLboolean WarnFlag = GL_FALSE;
static _glapi_warning_func warning_func;
+#if defined(PTHREADS) || defined(GLX_USE_TLS)
static void init_glapi_relocs(void);
+#endif
static _glapi_proc generate_entrypoint(GLuint functionOffset);
static void fill_in_entrypoint_offset(_glapi_proc entrypoint, GLuint offset);
@@ -1013,6 +1015,7 @@ _glapi_check_table(const struct _glapi_table *table)
}
+#if defined(PTHREADS) || defined(GLX_USE_TLS)
/**
* Perform platform-specific GL API entry-point fixups.
*
@@ -1033,3 +1036,4 @@ init_glapi_relocs( void )
}
#endif /* defined( USE_X86_ASM ) && defined( GLX_USE_TLS ) */
}
+#endif