Can't leave APIENTRY defined, it conflicts with windef.h definition of APIENTRY.
This commit is contained in:
Nigel Stewart 2013-03-18 22:23:02 -05:00
parent db6dbecb7a
commit 14854b4ae6
2 changed files with 4 additions and 3 deletions

View File

@ -40,6 +40,7 @@
*/ */
/* <windef.h> */ /* <windef.h> */
#ifndef APIENTRY #ifndef APIENTRY
#define GLEW_APIENTRY_DEFINED
# if defined(__MINGW32__) || defined(__CYGWIN__) # if defined(__MINGW32__) || defined(__CYGWIN__)
# define APIENTRY __stdcall # define APIENTRY __stdcall
# elif (_MSC_VER >= 800) || defined(_STDCALL_SUPPORTED) || defined(__BORLANDC__) # elif (_MSC_VER >= 800) || defined(_STDCALL_SUPPORTED) || defined(__BORLANDC__)
@ -101,7 +102,6 @@ typedef _W64 int ptrdiff_t;
#endif #endif
#ifndef GLAPIENTRY #ifndef GLAPIENTRY
#define GLEW_GLAPIENTRY_DEFINED
#define GLAPIENTRY APIENTRY #define GLAPIENTRY APIENTRY
#endif #endif

View File

@ -51,8 +51,9 @@ GLEWAPI const GLubyte * GLEWAPIENTRY glewGetString (GLenum name);
} }
#endif #endif
#ifdef GLEW_GLAPIENTRY_DEFINED #ifdef GLEW_APIENTRY_DEFINED
#undef GLEW_GLAPIENTRY_DEFINED #undef GLEW_APIENTRY_DEFINED
#undef APIENTRY
#undef GLAPIENTRY #undef GLAPIENTRY
#define GLAPIENTRY #define GLAPIENTRY
#endif #endif