diff options
author | Keith Whitwell <keith@tungstengraphics.com> | 2003-12-08 15:00:24 +0000 |
---|---|---|
committer | Keith Whitwell <keith@tungstengraphics.com> | 2003-12-08 15:00:24 +0000 |
commit | 3abad78e26e561ffb30ef63a559eb8f9682e4f44 (patch) | |
tree | f37472a5bb0d16b4975026ee626da9589e6dd659 /include | |
parent | 07851ca039a3c9c54a21f8e364e740f918e8b3ec (diff) | |
download | external_mesa3d-3abad78e26e561ffb30ef63a559eb8f9682e4f44.zip external_mesa3d-3abad78e26e561ffb30ef63a559eb8f9682e4f44.tar.gz external_mesa3d-3abad78e26e561ffb30ef63a559eb8f9682e4f44.tar.bz2 |
Can't include <stddef.h> when building XFree86 server - define
ptrdiff_t to int instead
Diffstat (limited to 'include')
-rw-r--r-- | include/GL/gl.h | 4 | ||||
-rw-r--r-- | include/GL/glext.h | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/include/GL/gl.h b/include/GL/gl.h index 1f53ff4..40d80d2 100644 --- a/include/GL/gl.h +++ b/include/GL/gl.h @@ -38,7 +38,11 @@ */ #if !defined(__SCITECH_SNAP__) +#ifndef XFree86Server #include <stddef.h> /* to get ptrdiff_t, used below */ +#else +#define ptrdiff_t int +#endif #if defined(__BEOS__) #include <stdlib.h> /* to get some BeOS-isms */ diff --git a/include/GL/glext.h b/include/GL/glext.h index 777cc03..7f1f938 100644 --- a/include/GL/glext.h +++ b/include/GL/glext.h @@ -3290,7 +3290,11 @@ typedef GLboolean (APIENTRYP PFNGLISPROGRAMARBPROC) (GLuint program); #define GL_ARB_vertex_buffer_object 1 /* GL types for handling large vertex buffer objects */ /* Only used by this extension for now; later needs to be moved earlier in glext.h */ +#ifndef XFree86Server #include <stddef.h> +#else +#define ptrdiff_t int +#endif typedef ptrdiff_t GLintptrARB; typedef ptrdiff_t GLsizeiptrARB; #ifdef GL_GLEXT_PROTOTYPES |