Browse Source

Move <sys/time.h> into platform-specific files (#13)

Since we have platform-specific header files, it is better to move such platform-dependent includes into those files.
Yihua LOU 7 years ago
parent
commit
437e68564d
2 changed files with 2 additions and 3 deletions
  1. 2 0
      ios/pal_config.h
  2. 0 3
      video.c

+ 2 - 0
ios/pal_config.h

@@ -29,4 +29,6 @@ UTIL_SavePath(
    VOID
 );
 
+#include <sys/time.h>
+
 #endif

+ 0 - 3
video.c

@@ -20,9 +20,6 @@
 //
 
 #include "main.h"
-#if defined(__IOS__) || defined(__EMSCRIPTEN__)
-#include <sys/time.h>
-#endif
 
 // Screen buffer
 SDL_Surface              *gpScreen           = NULL;