summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-06-15 10:40:36 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2010-06-15 10:40:36 +0100
commit52624446636bb5941ca2180afa2c0be275414cec (patch)
tree60249d4944f594de62711efc82e156c99330a809
parent56d06b088b9c355ca76a38191717a8e03aa5f59a (diff)
glew: Define NULL
-rw-r--r--src/glew/glew.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/glew/glew.c b/src/glew/glew.c
index 6ef6d229..9b860032 100644
--- a/src/glew/glew.c
+++ b/src/glew/glew.c
@@ -65,6 +65,10 @@
# define GLXEW_CONTEXT_ARG_DEF_LIST void
#endif /* GLEW_MX */
+#ifndef NULL
+#define NULL (void *) 0
+#endif
+
#if defined(__APPLE__)
#include <mach-o/dyld.h>
#include <stdlib.h>