diff --git a/BBGE/GL/gl.h b/BBGE/GL/gl.h index a4614ed..5681f67 100644 --- a/BBGE/GL/gl.h +++ b/BBGE/GL/gl.h @@ -31,7 +31,10 @@ extern "C" { ** the United States. */ -#ifndef APIENTRY +#undef APIENTRY +#ifdef _WIN32 +#define APIENTRY __stdcall +#else #define APIENTRY #endif @@ -44,17 +47,6 @@ extern "C" { #undef WINGDIAPI #define WINGDIAPI extern - - -#ifndef GLAPI -# ifdef _WIN32 -# define GLAPI __stdcall -# else -# define GLAPI -# endif -# define __DEFINED_GLAPI -#endif - /*************************************************************/ typedef unsigned int GLenum; @@ -1628,11 +1620,6 @@ WINGDIAPI void APIENTRY glVertex4sv (const GLshort *v); WINGDIAPI void APIENTRY glVertexPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); WINGDIAPI void APIENTRY glViewport (GLint x, GLint y, GLsizei width, GLsizei height); -#ifdef __DEFINED_GLAPI -# undef GLAPI -# undef __DEFINED_GLAPI -#endif - #ifdef __cplusplus }