Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed bug #929
Browse files Browse the repository at this point in the history
Changed _WINDOWS to __WINDOWS__
  • Loading branch information
slouken committed Jan 21, 2011
1 parent 5ff6cb9 commit 3da9ba1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/SDL_assert.c
Expand Up @@ -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. */
Expand Down Expand Up @@ -57,7 +57,7 @@ debug_print(const char *fmt, ...) __attribute__((format (printf, 1, 2)));
static void
debug_print(const char *fmt, ...)
{
#ifdef _WINDOWS
#ifdef __WINDOWS__
/* Format into a buffer for OutputDebugStringA(). */
char buf[1024];
char *startptr;
Expand Down Expand Up @@ -99,7 +99,7 @@ debug_print(const char *fmt, ...)
}


#ifdef _WINDOWS
#ifdef __WINDOWS__
static SDL_assert_state SDL_Windows_AssertChoice = SDL_ASSERTION_ABORT;
static const SDL_assert_data *SDL_Windows_AssertData = NULL;

Expand Down Expand Up @@ -248,7 +248,7 @@ static void SDL_GenerateAssertionReport(void)

static void SDL_ExitProcess(int exitcode)
{
#ifdef _WINDOWS
#ifdef __WINDOWS__
ExitProcess(42);
#else
_exit(42);
Expand Down Expand Up @@ -311,7 +311,7 @@ SDL_PromptAssertion(const SDL_assert_data *data, void *userdata)

/* platform-specific UI... */

#ifdef _WINDOWS
#ifdef __WINDOWS__
state = SDL_PromptAssertion_windows(data);

#elif __MACOSX__
Expand Down

0 comments on commit 3da9ba1

Please sign in to comment.