progs/tests: Include stddef.h for ptrdiff_t on all platforms.
authorVinson Lee <vlee@vmware.com>
Mon, 22 Mar 2010 02:09:54 +0000 (19:09 -0700)
committerVinson Lee <vlee@vmware.com>
Mon, 22 Mar 2010 02:09:54 +0000 (19:09 -0700)
stddef.h is the standard C header that defines ptrdiff_t.

Fixes build of cva_huge on Mac OS X.

progs/tests/cva_huge.c

index da63596d48617868f69fab9e796ea15a8a208def..88ec2af2a845f7c4f4019fcfff9278cd78acb149 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