minor APIENTRY clean-ups
This commit is contained in:
@@ -64,11 +64,7 @@
|
|||||||
#elif defined(__CYGWIN__) && defined(USE_OPENGL32) /* use native windows opengl32 */
|
#elif defined(__CYGWIN__) && defined(USE_OPENGL32) /* use native windows opengl32 */
|
||||||
# define GLAPI extern
|
# define GLAPI extern
|
||||||
# define GLAPIENTRY __stdcall
|
# define GLAPIENTRY __stdcall
|
||||||
#else
|
#endif /* WIN32 && !CYGWIN */
|
||||||
/* non-Windows compilation */
|
|
||||||
# define GLAPI extern
|
|
||||||
# define GLAPIENTRY
|
|
||||||
#endif /* WIN32 / CYGWIN bracket */
|
|
||||||
|
|
||||||
#if (defined(__BEOS__) && defined(__POWERPC__)) || defined(__QUICKDRAW__)
|
#if (defined(__BEOS__) && defined(__POWERPC__)) || defined(__QUICKDRAW__)
|
||||||
# define PRAGMA_EXPORT_SUPPORTED 1
|
# define PRAGMA_EXPORT_SUPPORTED 1
|
||||||
@@ -95,10 +91,22 @@
|
|||||||
#pragma import on
|
#pragma import on
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLAPI
|
||||||
|
#define GLAPI extern
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLAPIENTRY
|
||||||
|
#define GLAPIENTRY
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef APIENTRY
|
#ifndef APIENTRY
|
||||||
#define APIENTRY GLAPIENTRY
|
#define APIENTRY GLAPIENTRY
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* "P" suffix for when function returns a pointer */
|
||||||
|
#ifndef APIENTRYP
|
||||||
#define APIENTRYP APIENTRY *
|
#define APIENTRYP APIENTRY *
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef GLAPIENTRYP
|
#ifndef GLAPIENTRYP
|
||||||
#define GLAPIENTRYP GLAPIENTRY *
|
#define GLAPIENTRYP GLAPIENTRY *
|
||||||
@@ -844,7 +852,7 @@ GLAPI GLint GLAPIENTRY glRenderMode( GLenum mode );
|
|||||||
|
|
||||||
GLAPI GLenum GLAPIENTRY glGetError( void );
|
GLAPI GLenum GLAPIENTRY glGetError( void );
|
||||||
|
|
||||||
GLAPI const GLubyte* GLAPIENTRY glGetString( GLenum name );
|
GLAPI const GLubyte GLAPIENTRYP glGetString( GLenum name );
|
||||||
|
|
||||||
GLAPI void GLAPIENTRY glFinish( void );
|
GLAPI void GLAPIENTRY glFinish( void );
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user