Use _WINDOWS; Use _MSC_VER properly; comment #if block

This commit is contained in:
Ben Anderson
2005-06-26 04:02:39 +00:00
parent d3e3c756ac
commit 6b22e48136
+4 -2
View File
@@ -6,14 +6,16 @@
#include "RageSurface.h" #include "RageSurface.h"
#if defined(_MSC_VER) #if defined(_WINDOWS)
# include "libpng/include/png.h" # include "libpng/include/png.h"
# if defined(XBOX) # if defined(_MSC_VER)
# if defined(_XBOX)
# pragma comment(lib, "libpng/lib/xboxlibpng.lib") # pragma comment(lib, "libpng/lib/xboxlibpng.lib")
# else # else
# pragma comment(lib, "libpng/lib/libpng.lib") # pragma comment(lib, "libpng/lib/libpng.lib")
# endif # endif
# pragma warning(disable: 4611) /* interaction between '_setjmp' and C++ object destruction is non-portable */ # pragma warning(disable: 4611) /* interaction between '_setjmp' and C++ object destruction is non-portable */
# endif // _MSC_VER
#else #else
# include <png.h> # include <png.h>
#endif #endif