add missing os/2 apientry defs to SDL_opengl.h
authorSam Lantinga <slouken@libsdl.org>
Sat, 19 Aug 2017 11:15:58 -0700
changeset 113311e231cf0a347
parent 11330 6ae35c5f7f7b
child 11332 e3797888c6f1
add missing os/2 apientry defs to SDL_opengl.h
include/SDL_opengl.h
     1.1 --- a/include/SDL_opengl.h	Sat Aug 19 03:07:44 2017 -0700
     1.2 +++ b/include/SDL_opengl.h	Sat Aug 19 11:15:58 2017 -0700
     1.3 @@ -97,6 +97,13 @@
     1.4  #elif defined(__CYGWIN__) && defined(USE_OPENGL32) /* use native windows opengl32 */
     1.5  #  define GLAPI extern
     1.6  #  define GLAPIENTRY __stdcall
     1.7 +#elif defined(__OS2__) || defined(__EMX__) /* native os/2 opengl */
     1.8 +#  define GLAPI extern
     1.9 +#  define GLAPIENTRY _System
    1.10 +#  define APIENTRY _System
    1.11 +#  if defined(__GNUC__) && !defined(_System)
    1.12 +#    define _System
    1.13 +#  endif
    1.14  #elif (defined(__GNUC__) && __GNUC__ >= 4) || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590))
    1.15  #  define GLAPI __attribute__((visibility("default")))
    1.16  #  define GLAPIENTRY