From 81203eafc6ff8385c8c85b5680ea6624c48cf67b Mon Sep 17 00:00:00 2001 From: meep-eep Date: Fri, 27 Feb 2004 23:24:29 +0000 Subject: [PATCH] Added define for WINAPI. git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1336 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/libs/graphics/sdl/opengl.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sc2/src/sc2code/libs/graphics/sdl/opengl.h b/sc2/src/sc2code/libs/graphics/sdl/opengl.h index 2087865f6..3313ccdbc 100644 --- a/sc2/src/sc2code/libs/graphics/sdl/opengl.h +++ b/sc2/src/sc2code/libs/graphics/sdl/opengl.h @@ -47,6 +47,15 @@ SDL_Surface* TFB_GL_DisplayFormatAlpha (SDL_Surface *surface); #endif #endif +#ifndef WINAPI +#define GLUT_WINAPI_DEFINED +#if __MINGW32__ || (_MSC_VER >= 800) || defined(_STDCALL_SUPPORTED) +#define WINAPI __stdcall +#else +#define WINAPI +#endif +#endif + /* This is from Win32's */ #ifndef CALLBACK #if (defined(_M_MRX000) || defined(_M_IX86) || defined(_M_ALPHA) || defined(_M_PPC)) && !defined(MIDL_PASS)