mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-07-26 18:41:50 +00:00
Fix -Wundef warnings due to use of unguarded __IOS__
This commit is contained in:
@@ -294,7 +294,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
textwin = SDLTest_TextWindowCreate(0, 0, 640, 480);
|
||||
|
||||
#if __IOS__
|
||||
#ifdef __IOS__
|
||||
/* Creating the context creates the view, which we need to show keyboard */
|
||||
SDL_GL_CreateContext(window);
|
||||
#endif
|
||||
|
||||
@@ -277,7 +277,7 @@ int main(int argc, char *argv[])
|
||||
renderer = SDL_CreateRenderer(window, NULL, 0);
|
||||
SDL_RenderPresent(renderer);
|
||||
|
||||
#if __IOS__
|
||||
#ifdef __IOS__
|
||||
/* Creating the context creates the view, which we need to show keyboard */
|
||||
SDL_GL_CreateContext(window);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user