Commit 7327ef6b authored by Sam Lantinga's avatar Sam Lantinga

Fixed cross-compiling for Windows

parent ada07462
...@@ -2446,6 +2446,10 @@ AC_HELP_STRING([--enable-render-d3d], [enable the Direct3D render driver [[defau ...@@ -2446,6 +2446,10 @@ AC_HELP_STRING([--enable-render-d3d], [enable the Direct3D render driver [[defau
CheckWINDOWS CheckWINDOWS
CheckWINDOWSGL CheckWINDOWSGL
CheckDIRECTX CheckDIRECTX
# Set up the core platform files
SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
# Set up files for the video library # Set up files for the video library
if test x$enable_video = xyes; then if test x$enable_video = xyes; then
AC_DEFINE(SDL_VIDEO_DRIVER_WINDOWS) AC_DEFINE(SDL_VIDEO_DRIVER_WINDOWS)
......
...@@ -90,7 +90,7 @@ ...@@ -90,7 +90,7 @@
#undef HAVE_REALLOC #undef HAVE_REALLOC
#undef HAVE_FREE #undef HAVE_FREE
#undef HAVE_ALLOCA #undef HAVE_ALLOCA
#ifndef __WINDOWS__ /* Don't use C runtime versions of these on Windows */ #ifndef __WIN32__ /* Don't use C runtime versions of these on Windows */
#undef HAVE_GETENV #undef HAVE_GETENV
#undef HAVE_SETENV #undef HAVE_SETENV
#undef HAVE_PUTENV #undef HAVE_PUTENV
......
...@@ -21,8 +21,13 @@ ...@@ -21,8 +21,13 @@
*/ */
#include "SDL_config.h" #include "SDL_config.h"
#ifndef _SDL_systhread_c_h
#define _SDL_systhread_c_h
#include "../../core/windows/SDL_windows.h" #include "../../core/windows/SDL_windows.h"
typedef HANDLE SYS_ThreadHandle; typedef HANDLE SYS_ThreadHandle;
#endif /* _SDL_systhread_c_h */
/* vi: set ts=4 sw=4 expandtab: */ /* vi: set ts=4 sw=4 expandtab: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment