Blame wesnoth-libpng15.patch
|
|
843b89c |
--- src/tools/exploder_utils.cpp.libpng 2011-11-06 14:44:26.618711420 -0600
|
|
|
843b89c |
+++ src/tools/exploder_utils.cpp 2011-11-06 14:57:12.150006511 -0600
|
|
|
843b89c |
@@ -15,6 +15,7 @@
|
|
|
843b89c |
#include "exploder_utils.hpp"
|
|
|
843b89c |
#include "game_config.hpp"
|
|
|
843b89c |
#include "serialization/string_utils.hpp"
|
|
|
843b89c |
+#include <zlib.h>
|
|
|
843b89c |
#include <png.h>
|
|
|
843b89c |
|
|
|
843b89c |
exploder_point::exploder_point(const std::string &s)
|
|
|
843b89c |
@@ -174,8 +175,8 @@
|
|
|
843b89c |
//TODO: review whether providing NULL error handlers is something
|
|
|
843b89c |
//sensible
|
|
|
843b89c |
png_struct* png_ptr = png_create_write_struct
|
|
|
843b89c |
- (PNG_LIBPNG_VER_STRING, reinterpret_cast<png_voidp>(png_voidp_NULL),
|
|
|
843b89c |
- png_error_ptr_NULL, png_error_ptr_NULL);
|
|
|
843b89c |
+ (PNG_LIBPNG_VER_STRING, reinterpret_cast<png_voidp>(NULL),
|
|
|
843b89c |
+ NULL, NULL);
|
|
|
843b89c |
if(!png_ptr)
|
|
|
843b89c |
throw exploder_failure("Unable to initialize the png write structure");
|
|
|
843b89c |
|