|
@@ -48,13 +48,13 @@
|
|
|
* implementations.
|
|
|
*/
|
|
|
|
|
|
-#ifdef EGL_NO_PLATFORM_SPECIFIC_TYPES
|
|
|
+#if defined(EGL_NO_PLATFORM_SPECIFIC_TYPES)
|
|
|
|
|
|
typedef void *EGLNativeDisplayType;
|
|
|
typedef void *EGLNativePixmapType;
|
|
|
typedef void *EGLNativeWindowType;
|
|
|
|
|
|
-#elif defined(_WIN32) || defined(__VC32__) && !defined(SDL_PLATFORM_CYGWIN) && !defined(__SCITECH_SNAP__) /* Win32 and WinCE */
|
|
|
+#elif defined(_WIN32) || defined(__VC32__) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__) /* Win32 and WinCE */
|
|
|
#ifndef WIN32_LEAN_AND_MEAN
|
|
|
#define WIN32_LEAN_AND_MEAN 1
|
|
|
#endif
|
|
@@ -88,7 +88,7 @@ typedef struct gbm_device *EGLNativeDisplayType;
|
|
|
typedef struct gbm_bo *EGLNativePixmapType;
|
|
|
typedef void *EGLNativeWindowType;
|
|
|
|
|
|
-#elif defined(SDL_PLATFORM_ANDROID) || defined(ANDROID)
|
|
|
+#elif defined(__ANDROID__) || defined(ANDROID)
|
|
|
|
|
|
struct ANativeWindow;
|
|
|
struct egl_native_pixmap_t;
|
|
@@ -125,7 +125,7 @@ typedef int EGLNativeDisplayType;
|
|
|
typedef void *EGLNativePixmapType;
|
|
|
typedef void *EGLNativeWindowType;
|
|
|
|
|
|
-#elif defined(SDL_PLATFORM_HAIKU)
|
|
|
+#elif defined(__HAIKU__)
|
|
|
|
|
|
#include <kernel/image.h>
|
|
|
|
|
@@ -160,7 +160,7 @@ typedef khronos_int32_t EGLint;
|
|
|
|
|
|
|
|
|
/* C++ / C typecast macros for special EGL handle values */
|
|
|
-#ifdef __cplusplus
|
|
|
+#if defined(__cplusplus)
|
|
|
#define EGL_CAST(type, value) (static_cast<type>(value))
|
|
|
#else
|
|
|
#define EGL_CAST(type, value) ((type) (value))
|