Define HAVE_STDIO_H.

SDL can operate without stdio.h, but Lime requires it in most cases.
This commit is contained in:
Joseph Cloutier
2022-05-19 18:21:48 -04:00
parent d21847e65c
commit 19eab56416
2 changed files with 3 additions and 0 deletions

View File

@@ -247,6 +247,7 @@
<compilerflag value="-D__IPHONEOS__" if="ios || tvos" />
<compilerflag value="-D__APPLETVOS__" if="tvos" />
<compilerflag value="-DAPPLETV" if="tvos" />
<compilerflag value="-DHAVE_STDIO_H" unless="windows" />
<file name="src/backend/sdl/SDLApplication.cpp" />
<file name="src/backend/sdl/SDLGamepad.cpp" />

View File

@@ -578,6 +578,8 @@ namespace lime {
{
#ifdef HAVE_STDIO_H
return ((SDL_RWops*)handle)->hidden.stdio.fp;
#else
#error Lime requires HAVE_STDIO_H
#endif
}
case SDL_RWOPS_JNIFILE: