Commit b5141783 authored by Sam Lantinga's avatar Sam Lantinga

Fixed bug #929

Changed _WINDOWS to __WINDOWS__
parent d257c63c
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
#include "SDL_assert_c.h" #include "SDL_assert_c.h"
#include "video/SDL_sysvideo.h" #include "video/SDL_sysvideo.h"
#ifdef _WINDOWS #ifdef __WINDOWS__
#define WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN
#include <windows.h> #include <windows.h>
#else /* fprintf, _exit(), etc. */ #else /* fprintf, _exit(), etc. */
...@@ -57,7 +57,7 @@ debug_print(const char *fmt, ...) __attribute__((format (printf, 1, 2))); ...@@ -57,7 +57,7 @@ debug_print(const char *fmt, ...) __attribute__((format (printf, 1, 2)));
static void static void
debug_print(const char *fmt, ...) debug_print(const char *fmt, ...)
{ {
#ifdef _WINDOWS #ifdef __WINDOWS__
/* Format into a buffer for OutputDebugStringA(). */ /* Format into a buffer for OutputDebugStringA(). */
char buf[1024]; char buf[1024];
char *startptr; char *startptr;
...@@ -99,7 +99,7 @@ debug_print(const char *fmt, ...) ...@@ -99,7 +99,7 @@ debug_print(const char *fmt, ...)
} }
#ifdef _WINDOWS #ifdef __WINDOWS__
static SDL_assert_state SDL_Windows_AssertChoice = SDL_ASSERTION_ABORT; static SDL_assert_state SDL_Windows_AssertChoice = SDL_ASSERTION_ABORT;
static const SDL_assert_data *SDL_Windows_AssertData = NULL; static const SDL_assert_data *SDL_Windows_AssertData = NULL;
...@@ -248,7 +248,7 @@ static void SDL_GenerateAssertionReport(void) ...@@ -248,7 +248,7 @@ static void SDL_GenerateAssertionReport(void)
static void SDL_ExitProcess(int exitcode) static void SDL_ExitProcess(int exitcode)
{ {
#ifdef _WINDOWS #ifdef __WINDOWS__
ExitProcess(42); ExitProcess(42);
#else #else
_exit(42); _exit(42);
...@@ -311,7 +311,7 @@ SDL_PromptAssertion(const SDL_assert_data *data, void *userdata) ...@@ -311,7 +311,7 @@ SDL_PromptAssertion(const SDL_assert_data *data, void *userdata)
/* platform-specific UI... */ /* platform-specific UI... */
#ifdef _WINDOWS #ifdef __WINDOWS__
state = SDL_PromptAssertion_windows(data); state = SDL_PromptAssertion_windows(data);
#elif __MACOSX__ #elif __MACOSX__
......
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