2011-05-19 Juan Manuel Guerrero  <juan.guerrero@gmx.de>

	* png.h: Add port info.

	* pngpriv.h: Use [v]snprintf() from DJGPP's repository to support djdev203 builds.




diff -aprNU5 libpng-1.5.2.orig/png.h libpng-1.5.2/png.h
--- libpng-1.5.2.orig/png.h	2011-03-31 16:23:40 +0000
+++ libpng-1.5.2/png.h	2011-05-19 19:52:50 +0000
@@ -355,11 +355,11 @@
  */
 
 /* Version information for png.h - this should match the version in png.c */
 #define PNG_LIBPNG_VER_STRING "1.5.2"
 #define PNG_HEADER_VERSION_STRING \
-     " libpng version 1.5.2 - March 31, 2011\n"
+     " libpng version 1.5.2 - March 31, 2011  (DJGPP port (r1)\n"
 
 #define PNG_LIBPNG_VER_SONUM   15
 #define PNG_LIBPNG_VER_DLLNUM  15
 
 /* These should match the first 3 components of PNG_LIBPNG_VER_STRING: */
diff -aprNU5 libpng-1.5.2.orig/pngpriv.h libpng-1.5.2/pngpriv.h
--- libpng-1.5.2.orig/pngpriv.h	2011-03-31 16:23:40 +0000
+++ libpng-1.5.2/pngpriv.h	2011-05-19 19:55:42 +0000
@@ -178,10 +178,22 @@ typedef PNG_CONST png_uint_16p FAR * png
 #if defined(WIN32) || defined(_Windows) || defined(_WINDOWS) || \
     defined(_WIN32) || defined(__WIN32__)
 #  include <windows.h>  /* defines _WINDOWS_ macro */
 #endif
 
+#ifdef __DJGPP__
+#if 0
+  /*
+   *  As long as djdev203 is still supported
+   *  snprintf() must be supplied by libsupp.a.
+   */
+# include <libsupp.h>
+#else
+# include "djgpp/snprintf.h"
+#endif
+#endif
+
 /* Moved here around 1.5.0beta36 from pngconf.h */
 /* Users may want to use these so they are not private.  Any library
  * functions that are passed far data must be model-independent.
  */
 
