diff options
author | Vinson Lee <vlee@vmware.com> | 2010-03-21 19:09:54 -0700 |
---|---|---|
committer | Vinson Lee <vlee@vmware.com> | 2010-03-21 19:09:54 -0700 |
commit | 1e7d65bb5b50efbd5812e7996910b7688eb27192 (patch) | |
tree | 91b16c88d3d28f4cae6e76089ac1d2fa39d83621 | |
parent | 4ea694a26b99835d0b5bc814cf024850874a9a83 (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.
-rw-r--r-- | progs/tests/cva_huge.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/progs/tests/cva_huge.c b/progs/tests/cva_huge.c index da63596d48..88ec2af2a8 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 |