diff options
| author | ntoskrnl <ntoskrnl11@yahoo.com> | 2012-07-29 16:14:14 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-02 14:21:16 (GMT) |
| commit | f94fabd999c304de958cc051e9625f169cec138f (patch) | |
| tree | 9ee58bc33bd745afa32b0d57b413cc7a555cd545 /src/PowderToySDL.cpp | |
| parent | 87dfc47c9785f834e61eef4545c503071d1665fc (diff) | |
| download | powder-f94fabd999c304de958cc051e9625f169cec138f.zip powder-f94fabd999c304de958cc051e9625f169cec138f.tar.gz | |
Rename WIN32 preprocessor definition to WIN
Diffstat (limited to 'src/PowderToySDL.cpp')
| -rw-r--r-- | src/PowderToySDL.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/PowderToySDL.cpp b/src/PowderToySDL.cpp index f9901c1..3123a4b 100644 --- a/src/PowderToySDL.cpp +++ b/src/PowderToySDL.cpp @@ -4,7 +4,7 @@ #include <string> #include <time.h> #include "SDL.h" -#ifdef WIN32 +#ifdef WIN #include "SDL_syswm.h" #endif #include <iostream> @@ -35,7 +35,7 @@ using namespace std; -#ifdef WIN32 +#ifdef WIN extern "C" IMAGE_DOS_HEADER __ImageBase; #endif @@ -74,7 +74,7 @@ void blit(pixel * vid) SDL_Surface * SDLOpen() { SDL_Surface * surface; -#if defined(WIN32) && defined(WINCONSOLE) +#if defined(WIN) && defined(WINCONSOLE) FILE * console = fopen("CON", "w" ); #endif if (SDL_Init(SDL_INIT_VIDEO)<0) @@ -83,17 +83,16 @@ SDL_Surface * SDLOpen() return 0; } SDL_EnableUNICODE(1); -#if defined(WIN32) && defined(WINCONSOLE) +#if defined(WIN) && defined(WINCONSOLE) //On Windows, SDL redirects stdout to stdout.txt, which can be annoying when debugging, here we redirect back to the console if (console) { - freopen("CON", "w", stdout); freopen("CON", "w", stderr); //fclose(console); } #endif -#ifdef WIN32 +#ifdef WIN SDL_SysWMinfo SysInfo; SDL_VERSION(&SysInfo.version); if(SDL_GetWMInfo(&SysInfo) <= 0) { |
