summaryrefslogtreecommitdiffhomepage
path: root/nGenEx/PngImage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'nGenEx/PngImage.cpp')
-rw-r--r--nGenEx/PngImage.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/nGenEx/PngImage.cpp b/nGenEx/PngImage.cpp
index 0fedc6e..38839ba 100644
--- a/nGenEx/PngImage.cpp
+++ b/nGenEx/PngImage.cpp
@@ -20,6 +20,11 @@
#include <stdlib.h>
#include <string.h>
+// Needed for compatibility with libpng 1.4++
+#define png_infopp_NULL (png_infopp)NULL
+#define png_voidp_NULL (png_voidp)NULL
+#define int_p_NULL (int*)NULL
+
#include "png.h"
// +--------------------------------------------------------------------+