Use _WINDOWS; Use _MSC_VER properly; comment #if block
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user