Define HAVE_STDIO_H.
SDL can operate without stdio.h, but Lime requires it in most cases.
This commit is contained in:
@@ -247,6 +247,7 @@
|
|||||||
<compilerflag value="-D__IPHONEOS__" if="ios || tvos" />
|
<compilerflag value="-D__IPHONEOS__" if="ios || tvos" />
|
||||||
<compilerflag value="-D__APPLETVOS__" if="tvos" />
|
<compilerflag value="-D__APPLETVOS__" if="tvos" />
|
||||||
<compilerflag value="-DAPPLETV" 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/SDLApplication.cpp" />
|
||||||
<file name="src/backend/sdl/SDLGamepad.cpp" />
|
<file name="src/backend/sdl/SDLGamepad.cpp" />
|
||||||
|
|||||||
@@ -578,6 +578,8 @@ namespace lime {
|
|||||||
{
|
{
|
||||||
#ifdef HAVE_STDIO_H
|
#ifdef HAVE_STDIO_H
|
||||||
return ((SDL_RWops*)handle)->hidden.stdio.fp;
|
return ((SDL_RWops*)handle)->hidden.stdio.fp;
|
||||||
|
#else
|
||||||
|
#error Lime requires HAVE_STDIO_H
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
case SDL_RWOPS_JNIFILE:
|
case SDL_RWOPS_JNIFILE:
|
||||||
|
|||||||
Reference in New Issue
Block a user