From 7c46a3aa61e804a951a16c42076307a5325656ba Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 30 Jun 2003 04:53:45 +0000 Subject: [PATCH] #pragma comment is win32 only --- stepmania/src/RageSoundReader_SDL_Sound.cpp | 4 ++++ stepmania/src/StepMania.cpp | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/stepmania/src/RageSoundReader_SDL_Sound.cpp b/stepmania/src/RageSoundReader_SDL_Sound.cpp index f1893c09cc..22bc02e94b 100644 --- a/stepmania/src/RageSoundReader_SDL_Sound.cpp +++ b/stepmania/src/RageSoundReader_SDL_Sound.cpp @@ -6,6 +6,8 @@ * something wrong with my SDL_sound MAD wrapper ... */ +#ifdef WIN32 + #ifdef DEBUG #pragma comment(lib, "SDL_sound-1.0.0/lib/sdl_sound_static_d.lib") #else @@ -16,6 +18,8 @@ #pragma comment(lib, "SDL_sound-1.0.0/lib/vorbis_static.lib") #pragma comment(lib, "SDL_sound-1.0.0/lib/vorbisfile_static.lib") +#endif + #include "RageSoundReader_SDL_Sound.h" const int channels = 2; diff --git a/stepmania/src/StepMania.cpp b/stepmania/src/StepMania.cpp index 09748dfae8..305b595a1c 100644 --- a/stepmania/src/StepMania.cpp +++ b/stepmania/src/StepMania.cpp @@ -53,14 +53,16 @@ ArchHooks *HOOKS = NULL; +#ifdef WIN32 + #ifdef DEBUG #pragma comment(lib, "SDL-1.2.5/lib/SDLmaind.lib") #else #pragma comment(lib, "SDL-1.2.5/lib/SDLmain.lib") #endif -#ifdef WIN32 HWND g_hWndMain = NULL; + #endif static bool g_bHasFocus = true;