Keeping consistency between RS_Save_PNG and RS_Load_PNG
This commit is contained in:
@@ -5,8 +5,6 @@
|
||||
#include "RageFile.h"
|
||||
#include "RageSurface.h"
|
||||
|
||||
#include <png.h>
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#include "../extern/libpng/include/png.h"
|
||||
#pragma comment(lib, "libpng.lib")
|
||||
|
||||
@@ -6,15 +6,13 @@
|
||||
#include "RageLog.h"
|
||||
#include "RageUtil.h"
|
||||
|
||||
#if defined(WINDOWS)
|
||||
#include "png.h"
|
||||
#if defined(_MSC_VER)
|
||||
# pragma comment(lib, "libpng.lib")
|
||||
#include "../extern/libpng/include/png.h"
|
||||
#pragma comment(lib, "libpng.lib")
|
||||
#pragma warning(disable: 4611) /* interaction between '_setjmp' and C++ object destruction is non-portable */
|
||||
#endif
|
||||
#else
|
||||
#include <../extern/libpng/include/png.h>
|
||||
#endif
|
||||
#include <png.h>
|
||||
#endif // _MSC_VER
|
||||
|
||||
static void SafePngError( png_struct *pPng, const RString &sStr )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user