Skip to content
Snippets Groups Projects
Commit a7b9a625 authored by anonymouspage's avatar anonymouspage
Browse files

Do not define Darwin SDL entrypoints if SDL is disabled

The SDL related initialization functions should only be
compiled in if SDL has also been enabled in the build.
This was discovered after getting build errors on macOS
with SDL disabled.
parent bb233b89
No related branches found
No related tags found
No related merge requests found
Pipeline #3295 passed
...@@ -1886,7 +1886,7 @@ CIOLIBEXPORT enum ciolib_codepage ciolib_getcodepage(void) ...@@ -1886,7 +1886,7 @@ CIOLIBEXPORT enum ciolib_codepage ciolib_getcodepage(void)
return conio_fontdata[font].cp; return conio_fontdata[font].cp;
} }
#if defined(__DARWIN__) #if defined(__DARWIN__) && defined(WITH_SDL)
#ifdef main #ifdef main
#undef main #undef main
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment