Patched to compile on older (?) GL headers. trunk
authorRyan C. Gordon <icculus@icculus.org>
Sat, 03 May 2008 14:16:01 -0400
branchtrunk
changeset 277 49a6571cac6d
parent 276 1d7437469c94
child 278 5c432d216078
Patched to compile on older (?) GL headers.
glcaps.c
mojoshader_opengl.c
--- a/glcaps.c	Sat May 03 13:42:47 2008 -0400
+++ b/glcaps.c	Sat May 03 14:16:01 2008 -0400
@@ -9,6 +9,10 @@
 #include "GL/glext.h"
 #include "SDL.h"
 
+#ifndef WINGDIAPI
+#define WINGDIAPI
+#endif
+
 typedef WINGDIAPI void (APIENTRYP PFNGLGETINTEGERVPROC) (GLenum pname, GLint *params);
 typedef WINGDIAPI const GLubyte * (APIENTRYP PFNGLGETSTRINGPROC) (GLenum name);
 
--- a/mojoshader_opengl.c	Sat May 03 13:42:47 2008 -0400
+++ b/mojoshader_opengl.c	Sat May 03 14:16:01 2008 -0400
@@ -77,6 +77,10 @@
     uint32 refcount;
 };
 
+#ifndef WINGDIAPI
+#define WINGDIAPI
+#endif
+
 // Entry points in base OpenGL that lack function pointer prototypes...
 typedef WINGDIAPI void (APIENTRYP PFNGLGETINTEGERVPROC) (GLenum pname, GLint *params);
 typedef WINGDIAPI const GLubyte * (APIENTRYP PFNGLGETSTRINGPROC) (GLenum name);