From 18a65385073672b9f6dc2510b1b8bb0e34d09f0b Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sat, 19 Aug 2017 11:15:58 -0700 Subject: [PATCH] add missing os/2 apientry defs to SDL_opengl.h --- include/SDL_opengl.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/SDL_opengl.h b/include/SDL_opengl.h index f8d80c77c..314dd57ed 100644 --- a/include/SDL_opengl.h +++ b/include/SDL_opengl.h @@ -97,6 +97,13 @@ #elif defined(__CYGWIN__) && defined(USE_OPENGL32) /* use native windows opengl32 */ # define GLAPI extern # define GLAPIENTRY __stdcall +#elif defined(__OS2__) || defined(__EMX__) /* native os/2 opengl */ +# define GLAPI extern +# define GLAPIENTRY _System +# define APIENTRY _System +# if defined(__GNUC__) && !defined(_System) +# define _System +# endif #elif (defined(__GNUC__) && __GNUC__ >= 4) || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590)) # define GLAPI __attribute__((visibility("default"))) # define GLAPIENTRY