Just use stddef.h to get ptrdiff_t instead of obsolete malloc.h.
authorEric Anholt <eric@anholt.net>
Mon, 24 Sep 2007 17:22:31 +0000 (10:22 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 24 Sep 2007 17:22:31 +0000 (10:22 -0700)
progs/tests/cva.c
progs/tests/dinoshade.c
progs/tests/multipal.c

index c7677990bffef4ee187f016feca65fed584e6568..ed965e748a5ca6d68ee9e933c4ead82e86f0aea7 100644 (file)
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
-#ifdef __VMS
-# include <stddef.h>   /* for ptrdiff_t, referenced by GL.h when GL_GLEXT_LEGACY defined */
-#else
-# include <malloc.h>   /* for ptrdiff_t, referenced by GL.h when GL_GLEXT_LEGACY defined */
-#endif
+#include <stddef.h>    /* for ptrdiff_t, referenced by GL.h when GL_GLEXT_LEGACY defined */
 #ifdef _WIN32
 #include <windows.h>
 #endif
index ed7b879bc719ba13a1271272dc9dbe4b6f58de1e..504b4af526a2f63899c54a339d83f0a012cc3e39 100644 (file)
 #include <stdlib.h>
 #include <string.h>
 #include <math.h>       /* for cos(), sin(), and sqrt() */
-#ifdef __VMS
-# include <stddef.h>   /* for ptrdiff_t, referenced by GL.h when GL_GLEXT_LEGACY defined */
-#else
-# include <malloc.h>   /* for ptrdiff_t, referenced by GL.h when GL_GLEXT_LEGACY defined */
-#endif
+#include <stddef.h>    /* for ptrdiff_t, referenced by GL.h when GL_GLEXT_LEGACY defined */
 #ifdef _WIN32
 #include <windows.h>
 #endif
index c824b38703ac160540478fe68b7ade0d645a850b..fac652f4e054e6671d4e375111add3b4e9b97367 100644 (file)
@@ -9,11 +9,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#ifdef __VMS
-# include <stddef.h>   /* for ptrdiff_t, referenced by GL.h when GL_GLEXT_LEGACY defined */
-#else
-# include <malloc.h>   /* for ptrdiff_t, referenced by GL.h when GL_GLEXT_LEGACY defined */
-#endif
+#include <stddef.h>    /* for ptrdiff_t, referenced by GL.h when GL_GLEXT_LEGACY defined */
 #ifdef _WIN32
 #include <windows.h>
 #endif