mirror of
https://github.com/nigels-com/glew.git
synced 2024-11-22 05:45:07 +00:00
Leave APIENTRY defined at the conclusion of glew.h, since APIENTRY is part of the GL interface for GL_ARB_debug_output purposes, etc.
This commit is contained in:
parent
41c1305a89
commit
b7b516bf88
@ -40,7 +40,6 @@
|
||||
*/
|
||||
/* <windef.h> */
|
||||
#ifndef APIENTRY
|
||||
#define GLEW_APIENTRY_DEFINED
|
||||
# if defined(__MINGW32__) || defined(__CYGWIN__)
|
||||
# define APIENTRY __stdcall
|
||||
# elif (_MSC_VER >= 800) || defined(_STDCALL_SUPPORTED) || defined(__BORLANDC__)
|
||||
@ -102,6 +101,7 @@ typedef _W64 int ptrdiff_t;
|
||||
#endif
|
||||
|
||||
#ifndef GLAPIENTRY
|
||||
#define GLEW_GLAPIENTRY_DEFINED
|
||||
#define GLAPIENTRY APIENTRY
|
||||
#endif
|
||||
|
||||
|
@ -51,9 +51,8 @@ GLEWAPI const GLubyte * GLEWAPIENTRY glewGetString (GLenum name);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef GLEW_APIENTRY_DEFINED
|
||||
#undef GLEW_APIENTRY_DEFINED
|
||||
#undef APIENTRY
|
||||
#ifdef GLEW_GLAPIENTRY_DEFINED
|
||||
#undef GLEW_GLAPIENTRY_DEFINED
|
||||
#undef GLAPIENTRY
|
||||
#define GLAPIENTRY
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user