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
CheckWINDOWS
CheckWINDOWSGL
CheckDIRECTX
# Set up the core platform files
SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
# Set up files for the video library
if test x$enable_video = xyes; then
AC_DEFINE(SDL_VIDEO_DRIVER_WINDOWS)
......
......@@ -90,7 +90,7 @@
#undef HAVE_REALLOC
#undef HAVE_FREE
#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_SETENV
#undef HAVE_PUTENV
......
......@@ -21,8 +21,13 @@
*/
#include "SDL_config.h"
#ifndef _SDL_systhread_c_h
#define _SDL_systhread_c_h
#include "../../core/windows/SDL_windows.h"
typedef HANDLE SYS_ThreadHandle;
#endif /* _SDL_systhread_c_h */
/* 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