From 6b22e48136af86fa5409af66620acd8666c183c0 Mon Sep 17 00:00:00 2001 From: Ben Anderson Date: Sun, 26 Jun 2005 04:02:39 +0000 Subject: [PATCH] Use _WINDOWS; Use _MSC_VER properly; comment #if block --- stepmania/src/RageSurface_Load_PNG.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/stepmania/src/RageSurface_Load_PNG.cpp b/stepmania/src/RageSurface_Load_PNG.cpp index ddbef32b0b..813583efdb 100644 --- a/stepmania/src/RageSurface_Load_PNG.cpp +++ b/stepmania/src/RageSurface_Load_PNG.cpp @@ -6,14 +6,16 @@ #include "RageSurface.h" -#if defined(_MSC_VER) +#if defined(_WINDOWS) # include "libpng/include/png.h" -# if defined(XBOX) +# if defined(_MSC_VER) +# if defined(_XBOX) # pragma comment(lib, "libpng/lib/xboxlibpng.lib") # else # pragma comment(lib, "libpng/lib/libpng.lib") # endif # pragma warning(disable: 4611) /* interaction between '_setjmp' and C++ object destruction is non-portable */ +# endif // _MSC_VER #else # include #endif