From 2cd5cd2a42318fe97c8a99d6141cdb59d398875f Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Sat, 16 May 2026 14:56:32 +0300 Subject: [PATCH] cygwin: patch egl/opengles headers for EGLAPIENTRY --- include/SDL3/SDL_egl.h | 2 ++ src/video/khronos/KHR/khrplatform.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/include/SDL3/SDL_egl.h b/include/SDL3/SDL_egl.h index 1371c4d012..2690e9c21c 100644 --- a/include/SDL3/SDL_egl.h +++ b/include/SDL3/SDL_egl.h @@ -164,6 +164,8 @@ #if defined(_WIN32) && !defined(_WIN32_WCE) && !defined(__SCITECH_SNAP__) /* Win32 but not WinCE */ # define KHRONOS_APIENTRY __stdcall +#elif defined(__CYGWIN__) /* __CYGWIN__ added by SDL */ +# define KHRONOS_APIENTRY __stdcall #else # define KHRONOS_APIENTRY #endif diff --git a/src/video/khronos/KHR/khrplatform.h b/src/video/khronos/KHR/khrplatform.h index 01646449ca..ce63eee076 100644 --- a/src/video/khronos/KHR/khrplatform.h +++ b/src/video/khronos/KHR/khrplatform.h @@ -122,6 +122,8 @@ #if defined(_WIN32) && !defined(_WIN32_WCE) && !defined(__SCITECH_SNAP__) /* Win32 but not WinCE */ # define KHRONOS_APIENTRY __stdcall +#elif defined(__CYGWIN__) /* __CYGWIN__ added by SDL */ +# define KHRONOS_APIENTRY __stdcall #else # define KHRONOS_APIENTRY #endif