mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-05 02:30:18 +01:00
glapi: define GL_API to be KEYWORD1 in glapi_dispatch.c (v2)
This fixes a Windows build warning where the prototypes for the ES function in the header file don't match the prototypes in this file because the GL_API and GLAPI macros are defined differently. v2: defined GL_API to KEYWORD1 instead of GLAPI, per Mathias. Reviewed-by: Mathias Fröhlich <mathias.froehlich@web.de>
This commit is contained in:
parent
26bc983c83
commit
1bf201ddce
1 changed files with 7 additions and 0 deletions
|
|
@ -97,6 +97,13 @@
|
|||
*/
|
||||
#include <GLES/glplatform.h>
|
||||
|
||||
|
||||
/* Redefine GL_API to avoid MSVC/MinGW warnings about different dllimport
|
||||
* attributes for these prototypes vs those in the GLES/gl.h header.
|
||||
*/
|
||||
#undef GL_API
|
||||
#define GL_API KEYWORD1
|
||||
|
||||
GL_API void GL_APIENTRY glClearDepthf (GLclampf depth);
|
||||
GL_API void GL_APIENTRY glClipPlanef (GLenum plane, const GLfloat *equation);
|
||||
GL_API void GL_APIENTRY glFrustumf (GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue