Can't include <stddef.h> when building XFree86 server - define
authorKeith Whitwell <keith@tungstengraphics.com>
Mon, 8 Dec 2003 15:00:24 +0000 (15:00 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Mon, 8 Dec 2003 15:00:24 +0000 (15:00 +0000)
ptrdiff_t to int instead

include/GL/gl.h
include/GL/glext.h

index 1f53ff47907e9e1611ec9ebab12bbd812dad1050..40d80d2eec78833096cd52c709931cf2c7ece091 100644 (file)
  */
 #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 */
index 777cc03936a6c1f02c8ecf42ac5e469b2a9a3890..7f1f938c4cef6b0aa9225f78ecf1c4b053b6f7c7 100644 (file)
@@ -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