Browse Source

Fixed build on iOS

Sam Lantinga 5 years ago
parent
commit
8984d25bfa
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/SDL.c

+ 3 - 0
src/SDL.c

@@ -23,6 +23,9 @@
 #if defined(__WIN32__)
 #include "core/windows/SDL_windows.h"
 #endif
+#if defined(__IPHONEOS__)
+#include <unistd.h>
+#endif
 
 #if defined(__EMSCRIPTEN__)
 #include <emscripten.h>