Description: Fix build failures
Author: Upstream ticket

Origin: https://sourceforge.net/p/libpng/bugs/266/
Last-Update: 2017-07-08

--- libpng1.6-1.6.30.orig/pngpriv.h
+++ libpng1.6-1.6.30/pngpriv.h
@@ -466,6 +466,7 @@
    static_cast<type>(static_cast<const void*>(value))
 #else
 #  define png_voidcast(type, value) (value)
+#ifndef PNG_VERSION_INFO_ONLY
 #  ifdef _WIN64
 #     ifdef __GNUC__
          typedef unsigned long long png_ptruint;
@@ -476,6 +477,7 @@
       typedef unsigned long png_ptruint;
 #  endif
 #  define png_constcast(type, value) ((type)(png_ptruint)(const void*)(value))
+#endif /* PNG_VERSION_INFO_ONLY */
 #  define png_aligncast(type, value) ((void*)(value))
 #  define png_aligncastconst(type, value) ((const void*)(value))
 #endif /* __cplusplus */
