summaryrefslogtreecommitdiffstats
path: root/progs
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2010-03-21 19:09:54 -0700
committerVinson Lee <[email protected]>2010-03-21 19:09:54 -0700
commit1e7d65bb5b50efbd5812e7996910b7688eb27192 (patch)
tree91b16c88d3d28f4cae6e76089ac1d2fa39d83621 /progs
parent4ea694a26b99835d0b5bc814cf024850874a9a83 (diff)
progs/tests: Include stddef.h for ptrdiff_t on all platforms.
stddef.h is the standard C header that defines ptrdiff_t. Fixes build of cva_huge on Mac OS X.
Diffstat (limited to 'progs')
-rw-r--r--progs/tests/cva_huge.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/progs/tests/cva_huge.c b/progs/tests/cva_huge.c
index da63596d486..88ec2af2a84 100644
--- a/progs/tests/cva_huge.c
+++ b/progs/tests/cva_huge.c
@@ -32,11 +32,7 @@
#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