From 9bb0d628b8cac9673e6ecc69b090f972f3c4e6e3 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Mon, 24 Sep 2007 10:22:31 -0700 Subject: Just use stddef.h to get ptrdiff_t instead of obsolete malloc.h. --- progs/tests/cva.c | 6 +----- progs/tests/dinoshade.c | 6 +----- progs/tests/multipal.c | 6 +----- 3 files changed, 3 insertions(+), 15 deletions(-) (limited to 'progs/tests') diff --git a/progs/tests/cva.c b/progs/tests/cva.c index c7677990bff..ed965e748a5 100644 --- a/progs/tests/cva.c +++ b/progs/tests/cva.c @@ -11,11 +11,7 @@ #include #include #include -#ifdef __VMS -# include /* for ptrdiff_t, referenced by GL.h when GL_GLEXT_LEGACY defined */ -#else -# include /* for ptrdiff_t, referenced by GL.h when GL_GLEXT_LEGACY defined */ -#endif +#include /* for ptrdiff_t, referenced by GL.h when GL_GLEXT_LEGACY defined */ #ifdef _WIN32 #include #endif diff --git a/progs/tests/dinoshade.c b/progs/tests/dinoshade.c index ed7b879bc71..504b4af526a 100644 --- a/progs/tests/dinoshade.c +++ b/progs/tests/dinoshade.c @@ -38,11 +38,7 @@ #include #include #include /* for cos(), sin(), and sqrt() */ -#ifdef __VMS -# include /* for ptrdiff_t, referenced by GL.h when GL_GLEXT_LEGACY defined */ -#else -# include /* for ptrdiff_t, referenced by GL.h when GL_GLEXT_LEGACY defined */ -#endif +#include /* for ptrdiff_t, referenced by GL.h when GL_GLEXT_LEGACY defined */ #ifdef _WIN32 #include #endif diff --git a/progs/tests/multipal.c b/progs/tests/multipal.c index c824b38703a..fac652f4e05 100644 --- a/progs/tests/multipal.c +++ b/progs/tests/multipal.c @@ -9,11 +9,7 @@ #include #include #include -#ifdef __VMS -# include /* for ptrdiff_t, referenced by GL.h when GL_GLEXT_LEGACY defined */ -#else -# include /* for ptrdiff_t, referenced by GL.h when GL_GLEXT_LEGACY defined */ -#endif +#include /* for ptrdiff_t, referenced by GL.h when GL_GLEXT_LEGACY defined */ #ifdef _WIN32 #include #endif -- cgit v1.2.3