2012-04-30 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.10.orig/png.h libpng-1.5.10/png.h
--- libpng-1.5.10.orig/png.h	2012-03-29 05:06:54 +0000
+++ libpng-1.5.10/png.h	2012-04-30 15:56:34 +0000
@@ -381,11 +381,11 @@
  */
 
 /* Version information for png.h - this should match the version in png.c */
 #define PNG_LIBPNG_VER_STRING "1.5.10"
 #define PNG_HEADER_VERSION_STRING \
-     " libpng version 1.5.10 - March 29, 2012\n"
+     " libpng version 1.5.10 - March 29, 2012  (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.10.orig/pngpriv.h libpng-1.5.10/pngpriv.h
--- libpng-1.5.10.orig/pngpriv.h	2012-03-29 05:06:54 +0000
+++ libpng-1.5.10/pngpriv.h	2012-04-30 15:58:34 +0000
@@ -351,10 +351,14 @@ 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__
+#  include "djgpp/snprintf.h"
+#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.
  */
 
