src/SDL_assert.c
changeset 5064 eae20af0b983
parent 5007 adf6f0c8ec35
child 5086 c2539ff054c8
     1.1 --- a/src/SDL_assert.c	Thu Jan 20 18:09:55 2011 -0800
     1.2 +++ b/src/SDL_assert.c	Thu Jan 20 18:42:41 2011 -0800
     1.3 @@ -26,7 +26,7 @@
     1.4  #include "SDL_assert_c.h"
     1.5  #include "video/SDL_sysvideo.h"
     1.6  
     1.7 -#ifdef _WINDOWS
     1.8 +#ifdef __WINDOWS__
     1.9  #define WIN32_LEAN_AND_MEAN
    1.10  #include <windows.h>
    1.11  #else  /* fprintf, _exit(), etc. */
    1.12 @@ -57,7 +57,7 @@
    1.13  static void
    1.14  debug_print(const char *fmt, ...)
    1.15  {
    1.16 -#ifdef _WINDOWS
    1.17 +#ifdef __WINDOWS__
    1.18      /* Format into a buffer for OutputDebugStringA(). */
    1.19      char buf[1024];
    1.20      char *startptr;
    1.21 @@ -99,7 +99,7 @@
    1.22  }
    1.23  
    1.24  
    1.25 -#ifdef _WINDOWS
    1.26 +#ifdef __WINDOWS__
    1.27  static SDL_assert_state SDL_Windows_AssertChoice = SDL_ASSERTION_ABORT;
    1.28  static const SDL_assert_data *SDL_Windows_AssertData = NULL;
    1.29  
    1.30 @@ -248,7 +248,7 @@
    1.31  
    1.32  static void SDL_ExitProcess(int exitcode)
    1.33  {
    1.34 -#ifdef _WINDOWS
    1.35 +#ifdef __WINDOWS__
    1.36      ExitProcess(42);
    1.37  #else
    1.38      _exit(42);
    1.39 @@ -311,7 +311,7 @@
    1.40  
    1.41      /* platform-specific UI... */
    1.42  
    1.43 -#ifdef _WINDOWS
    1.44 +#ifdef __WINDOWS__
    1.45      state = SDL_PromptAssertion_windows(data);
    1.46  
    1.47  #elif __MACOSX__