Fixed cross-compiling for Windows
authorSam Lantinga <slouken@libsdl.org>
Mon, 24 Jan 2011 21:41:36 -0800
changeset 5093817064595222
parent 5092 ed1d54f1290a
child 5094 124cda437b07
Fixed cross-compiling for Windows
configure.in
include/SDL_config.h.in
src/thread/windows/SDL_systhread_c.h
     1.1 --- a/configure.in	Mon Jan 24 21:31:32 2011 -0800
     1.2 +++ b/configure.in	Mon Jan 24 21:41:36 2011 -0800
     1.3 @@ -2446,6 +2446,10 @@
     1.4          CheckWINDOWS
     1.5          CheckWINDOWSGL
     1.6          CheckDIRECTX
     1.7 +
     1.8 +        # Set up the core platform files
     1.9 +        SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
    1.10 +
    1.11          # Set up files for the video library
    1.12          if test x$enable_video = xyes; then
    1.13              AC_DEFINE(SDL_VIDEO_DRIVER_WINDOWS)
     2.1 --- a/include/SDL_config.h.in	Mon Jan 24 21:31:32 2011 -0800
     2.2 +++ b/include/SDL_config.h.in	Mon Jan 24 21:41:36 2011 -0800
     2.3 @@ -90,7 +90,7 @@
     2.4  #undef HAVE_REALLOC
     2.5  #undef HAVE_FREE
     2.6  #undef HAVE_ALLOCA
     2.7 -#ifndef __WINDOWS__ /* Don't use C runtime versions of these on Windows */
     2.8 +#ifndef __WIN32__ /* Don't use C runtime versions of these on Windows */
     2.9  #undef HAVE_GETENV
    2.10  #undef HAVE_SETENV
    2.11  #undef HAVE_PUTENV
     3.1 --- a/src/thread/windows/SDL_systhread_c.h	Mon Jan 24 21:31:32 2011 -0800
     3.2 +++ b/src/thread/windows/SDL_systhread_c.h	Mon Jan 24 21:41:36 2011 -0800
     3.3 @@ -21,8 +21,13 @@
     3.4  */
     3.5  #include "SDL_config.h"
     3.6  
     3.7 +#ifndef _SDL_systhread_c_h
     3.8 +#define _SDL_systhread_c_h
     3.9 +
    3.10  #include "../../core/windows/SDL_windows.h"
    3.11  
    3.12  typedef HANDLE SYS_ThreadHandle;
    3.13  
    3.14 +#endif /* _SDL_systhread_c_h */
    3.15 +
    3.16  /* vi: set ts=4 sw=4 expandtab: */