2010-08-10 Juan Manuel Guerrero  <juan.guerrero@gmx.de>

	* png.h: Add port info.

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




diff -aprNU5 libpng-1.4.3.orig/png.h libpng-1.4.3/png.h
--- libpng-1.4.3.orig/png.h	2010-06-26 00:32:24 +0000
+++ libpng-1.4.3/png.h	2010-08-10 23:12:16 +0000
@@ -348,13 +348,13 @@
  * with some code on which to build.  This file is useful for looking
  * at the actual function definitions and structure components.
  */
 
 /* Version information for png.h - this should match the version in png.c */
-#define PNG_LIBPNG_VER_STRING "1.4.3"
+#define PNG_LIBPNG_VER_STRING "1.4.3  (DJGPP port (r1)"
 #define PNG_HEADER_VERSION_STRING \
-   " libpng version 1.4.3 - June 26, 2010\n"
+   " libpng version 1.4.3 - June 26, 2010  (DJGPP port (r1)\n"
 
 #define PNG_LIBPNG_VER_SONUM   14
 #define PNG_LIBPNG_VER_DLLNUM  14
 
 /* These should match the first 3 components of PNG_LIBPNG_VER_STRING: */
diff -aprNU5 libpng-1.4.3.orig/pngpriv.h libpng-1.4.3/pngpriv.h
--- libpng-1.4.3.orig/pngpriv.h	2010-06-26 00:32:24 +0000
+++ libpng-1.4.3/pngpriv.h	2010-08-10 23:03:52 +0000
@@ -79,10 +79,22 @@
 #  ifdef _MSC_VER
 #    include <malloc.h>
 #  endif
 #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
+
 /* Various modes of operation.  Note that after an init, mode is set to
  * zero automatically when the structure is created.
  */
 #define PNG_HAVE_IHDR               0x01
 #define PNG_HAVE_PLTE               0x02
