Commit 8984d25bfaebbd65847e06fbddee4468561a1a9f

Sam Lantinga 2019-10-17T17:47:27

Fixed build on iOS

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/SDL.c b/src/SDL.c
index 4ad7d0d..aa09b95 100644
--- a/src/SDL.c
+++ b/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>