mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-29 04:21:03 +08:00
SDL_opengl.h: clean-up SDL's cygwin customization.
This commit is contained in:
@@ -31,6 +31,10 @@
|
|||||||
|
|
||||||
#include <SDL3/SDL_platform.h>
|
#include <SDL3/SDL_platform.h>
|
||||||
|
|
||||||
|
#if defined(SDL_PLATFORM_CYGWIN) && !defined(USE_OPENGL32)
|
||||||
|
#define USE_OPENGL32 1 /* use native windows opengl32 */
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef SDL_PLATFORM_IOS /* No OpenGL on iOS. */
|
#ifndef SDL_PLATFORM_IOS /* No OpenGL on iOS. */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -84,7 +88,7 @@
|
|||||||
# else
|
# else
|
||||||
# define GLAPIENTRY __stdcall
|
# define GLAPIENTRY __stdcall
|
||||||
# endif
|
# endif
|
||||||
#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
|
||||||
#elif (defined(__GNUC__) && __GNUC__ >= 4) || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590))
|
#elif (defined(__GNUC__) && __GNUC__ >= 4) || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590))
|
||||||
|
|||||||
Reference in New Issue
Block a user