summaryrefslogtreecommitdiffstats
path: root/include/GL/gl.h
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2003-12-08 15:00:24 +0000
committerKeith Whitwell <[email protected]>2003-12-08 15:00:24 +0000
commit3abad78e26e561ffb30ef63a559eb8f9682e4f44 (patch)
treef37472a5bb0d16b4975026ee626da9589e6dd659 /include/GL/gl.h
parent07851ca039a3c9c54a21f8e364e740f918e8b3ec (diff)
Can't include <stddef.h> when building XFree86 server - define
ptrdiff_t to int instead
Diffstat (limited to 'include/GL/gl.h')
-rw-r--r--include/GL/gl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/GL/gl.h b/include/GL/gl.h
index 1f53ff47907..40d80d2eec7 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 */