Skip to content

Commit

Permalink
Patched to compile on older (?) GL headers.
Browse files Browse the repository at this point in the history
--HG--
branch : trunk
  • Loading branch information
icculus committed May 3, 2008
1 parent ba2f766 commit c7fc7ec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions glcaps.c
Expand Up @@ -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);

Expand Down
4 changes: 4 additions & 0 deletions mojoshader_opengl.c
Expand Up @@ -77,6 +77,10 @@ struct MOJOSHADER_glProgram
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);
Expand Down

0 comments on commit c7fc7ec

Please sign in to comment.