changeset 5064:eae20af0b983

Fixed bug #929 Changed _WINDOWS to __WINDOWS__
author Sam Lantinga <slouken@libsdl.org>
date Thu, 20 Jan 2011 18:42:41 -0800
parents 5680976fb37a
children 7e4c7790700e
files src/SDL_assert.c
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/SDL_assert.c	Thu Jan 20 18:09:55 2011 -0800
+++ b/src/SDL_assert.c	Thu Jan 20 18:42:41 2011 -0800
@@ -26,7 +26,7 @@
 #include "SDL_assert_c.h"
 #include "video/SDL_sysvideo.h"
 
-#ifdef _WINDOWS
+#ifdef __WINDOWS__
 #define WIN32_LEAN_AND_MEAN
 #include <windows.h>
 #else  /* fprintf, _exit(), etc. */
@@ -57,7 +57,7 @@
 static void
 debug_print(const char *fmt, ...)
 {
-#ifdef _WINDOWS
+#ifdef __WINDOWS__
     /* Format into a buffer for OutputDebugStringA(). */
     char buf[1024];
     char *startptr;
@@ -99,7 +99,7 @@
 }
 
 
-#ifdef _WINDOWS
+#ifdef __WINDOWS__
 static SDL_assert_state SDL_Windows_AssertChoice = SDL_ASSERTION_ABORT;
 static const SDL_assert_data *SDL_Windows_AssertData = NULL;
 
@@ -248,7 +248,7 @@
 
 static void SDL_ExitProcess(int exitcode)
 {
-#ifdef _WINDOWS
+#ifdef __WINDOWS__
     ExitProcess(42);
 #else
     _exit(42);
@@ -311,7 +311,7 @@
 
     /* platform-specific UI... */
 
-#ifdef _WINDOWS
+#ifdef __WINDOWS__
     state = SDL_PromptAssertion_windows(data);
 
 #elif __MACOSX__