summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 6ef6d2291..9b8600323 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>