Better fix for iOS build

This commit is contained in:
Sam Lantinga 2019-10-17 17:51:49 -07:00
parent 8984d25bfa
commit 097b9c3084
2 changed files with 5 additions and 8 deletions

View File

@ -22,9 +22,9 @@
#if defined(__WIN32__) #if defined(__WIN32__)
#include "core/windows/SDL_windows.h" #include "core/windows/SDL_windows.h"
#elif !defined(__WINRT__)
#include <unistd.h> // For _exit(), etc.
#endif #endif
#if defined(__IPHONEOS__)
#include <unistd.h>
#endif #endif
#if defined(__EMSCRIPTEN__) #if defined(__EMSCRIPTEN__)

View File

@ -36,12 +36,9 @@
#ifndef WS_OVERLAPPEDWINDOW #ifndef WS_OVERLAPPEDWINDOW
#define WS_OVERLAPPEDWINDOW 0 #define WS_OVERLAPPEDWINDOW 0
#endif #endif
#else /* fprintf, _exit(), etc. */ #else /* fprintf, etc. */
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#if ! defined(__WINRT__)
#include <unistd.h>
#endif
#endif #endif
#if defined(__EMSCRIPTEN__) #if defined(__EMSCRIPTEN__)
@ -124,10 +121,10 @@ static void SDL_GenerateAssertionReport(void)
parts of SDL, because we don't want anything calling it without an parts of SDL, because we don't want anything calling it without an
extremely good reason. */ extremely good reason. */
#if defined(__WATCOMC__) #if defined(__WATCOMC__)
void SDL_ExitProcess(const int exitcode); extern void SDL_ExitProcess(const int exitcode);
#pragma aux SDL_ExitProcess aborts; #pragma aux SDL_ExitProcess aborts;
#endif #endif
SDL_NORETURN void SDL_ExitProcess(const int exitcode); extern SDL_NORETURN void SDL_ExitProcess(const int exitcode);
#if defined(__WATCOMC__) #if defined(__WATCOMC__)