From 910af324ddb780dffa55322f6becf58c632b9acc Mon Sep 17 00:00:00 2001 From: Sasha Szpakowski Date: Sat, 12 Oct 2024 12:32:39 -0300 Subject: [PATCH] macOS: fix crash on launch when opengl is used --- src/common/macos.mm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/common/macos.mm b/src/common/macos.mm index d759144c6..77b69b407 100644 --- a/src/common/macos.mm +++ b/src/common/macos.mm @@ -26,8 +26,10 @@ #import #import +#if __has_include() +#include +#else #include -#if !SDL_VERSION_ATLEAST(3, 0, 0) #include #endif