[devel] Supply default values for PNG_USER_PRIVATEBUILD and PNG_USER_DLLFNAME_POSTFIX

in pngpriv.h in case the user forgot to define them in their pngusr.h.  This
means it is safe for people not building a DLL to omit these defines from pngusr.h.
diff --git a/ANNOUNCE b/ANNOUNCE
index 4a9330a..7f7ca0b 100644
--- a/ANNOUNCE
+++ b/ANNOUNCE
@@ -1,5 +1,5 @@
 
-Libpng 1.5.0beta45 - August 24, 2010
+Libpng 1.5.0beta45 - August 25, 2010
 
 This is not intended to be a public release.  It will be replaced
 within a few weeks by a public version or by another test version.
@@ -226,7 +226,7 @@
     offset of the png_ptr->rowbuf pointer into png_ptr->big_row_buf.
   Added more blank lines for readability.
 
-version 1.5.0beta25 [August 24, 2010]
+version 1.5.0beta25 [August 25, 2010]
   In pngpread.c: png_push_have_row() add check for new_row > height
   Removed the now-redundant check for out-of-bounds new_row from example.c
 
@@ -377,7 +377,7 @@
   Implemented progressive read in pngvalid.c gamma tests
   Turn on progressive reader in pngvalid.c by default and tidy code.
 
-Version 1.5.0beta45 [August 24, 2010]
+Version 1.5.0beta45 [August 25, 2010]
   Added an explicit make step to projects/vstudio for pnglibconf.h
     Also corrected zlib.vcxproj into which Visual Studio had introduced
     what it calls an "authoring error".  The change to make pnglibconf.h
@@ -385,6 +385,8 @@
     file from scripts/pnglibconf.dfa as the other build systems do.
   Changed pngvalid to work when floating point APIs are disabled
   Renamed the prebuilt scripts/pnglibconf.h to scripts/pnglibconf.h.prebuilt
+  Supply default values for PNG_USER_PRIVATEBUILD and PNG_USER_DLLFNAME_POSTFIX
+    in pngpriv.h in case the user forgot to define them in their pngusr.h
 
 Send comments/corrections/commendations to png-mng-implement at lists.sf.net:
 (subscription required; visit
diff --git a/CHANGES b/CHANGES
index 41adc8c..0052da1 100644
--- a/CHANGES
+++ b/CHANGES
@@ -3014,7 +3014,7 @@
   Implemented progressive read in pngvalid.c gamma tests
   Turn on progressive reader in pngvalid.c by default and tidy code.
 
-Version 1.5.0beta45 [August 24, 2010]
+Version 1.5.0beta45 [August 25, 2010]
   Added an explicit make step to projects/vstudio for pnglibconf.h
     Also corrected zlib.vcxproj into which Visual Studio had introduced
     what it calls an "authoring error".  The change to make pnglibconf.h
@@ -3022,6 +3022,8 @@
     file from scripts/pnglibconf.dfa as the other build systems do.
   Changed pngvalid to work when floating point APIs are disabled
   Renamed the prebuilt scripts/pnglibconf.h to scripts/pnglibconf.h.prebuilt
+  Supply default values for PNG_USER_PRIVATEBUILD and PNG_USER_DLLFNAME_POSTFIX
+    in pngpriv.h in case the user forgot to define them in their pngusr.h
 
 Send comments/corrections/commendations to png-mng-implement at lists.sf.net
 (subscription required; visit
diff --git a/pngpriv.h b/pngpriv.h
index 7265c4d..0d86536 100644
--- a/pngpriv.h
+++ b/pngpriv.h
@@ -1,7 +1,7 @@
 
 /* pngpriv.h - private declarations for use inside libpng
  *
- * libpng version 1.5.0beta45 - August 24, 2010
+ * libpng version 1.5.0beta45 - August 25, 2010
  * For conditions of distribution and use, see copyright notice in png.h
  * Copyright (c) 1998-2010 Glenn Randers-Pehrson
  * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
@@ -32,6 +32,13 @@
 #define PNGLIB_BUILD
 #ifdef PNG_USER_CONFIG
 #  include "pngusr.h"
+   /* These should have been defined in pngusr.h */
+#  ifndef PNG_USER_PRIVATEBUILD
+#    define PNG_USER_PRIVATEBUILD "Custom libpng build"
+#  endif
+#  ifndef PNG_USER_DLLFNAME_POSTFIX
+#    define PNG_USER_DLLFNAME_POSTFIX "Cb"
+#  endif
 #endif
 #include "png.h"
 #include "pnginfo.h"
diff --git a/scripts/README.txt b/scripts/README.txt
index 06c6dba..219dadc 100644
--- a/scripts/README.txt
+++ b/scripts/README.txt
@@ -1,5 +1,5 @@
 
-Makefiles for  libpng version 1.5.0beta45 - August 24, 2010
+Makefiles for  libpng version 1.5.0beta45 - August 25, 2010
 
 pnglibconf.h.prebuilt       =>  Stores configuration settings
  makefile.linux    =>  Linux/ELF makefile
diff --git a/scripts/options.awk b/scripts/options.awk
index 0e33ed0..a21b9bd 100755
--- a/scripts/options.awk
+++ b/scripts/options.awk
@@ -1,7 +1,7 @@
 #!/bin/awk -f
 # scripts/options.awk - library build configuration control
 #
-# last changed in libpng version 1.5.0 - August 24, 2010
+# last changed in libpng version 1.5.0 - August 25, 2010
 #
 # Copyright (c) 1998-2010 Glenn Randers-Pehrson
 #
diff --git a/scripts/pnglibconf.dfa b/scripts/pnglibconf.dfa
index 766b9b7..1c95244 100644
--- a/scripts/pnglibconf.dfa
+++ b/scripts/pnglibconf.dfa
@@ -6,7 +6,7 @@
 #
 com pnglibconf.h - library build configuration
 com
-com libpng version PNGLIB_VERSION - last changed on August 24, 2010
+com libpng version PNGLIB_VERSION - last changed on August 25, 2010
 com
 com Copyright (c) 1998-2010 Glenn Randers-Pehrson
 com
@@ -14,6 +14,7 @@
 com For conditions of distribution and use, see the disclaimer
 com and license in png.h
 com
+
 file pnglibconf.h scripts/pnglibconf.dfa PNGLCONF_H
 
 # This file is preprocessed by scripts/options.awk and the
@@ -70,10 +71,6 @@
 # is safer to ensure that -DPNG_USER_CONFIG is specified throughout
 # the build by changing the CPPFLAGS passed to the initial ./configure
 #
-# This process will result in a very annoying build fail if you
-# forget to define both 'PNG_USER_PRIVATEBUILD' and
-# 'PNG_USER_DLLFNAME_POSTFIX' in pngusr.h - this is deliberate.
-#
 # 2) Add definitions of the settings you want to change to
 # CPPFLAGS; for example:
 # 
@@ -105,15 +102,12 @@
 # The following causes commented out #undef lines to be written to
 # pnglibconf.h; this can be stopped by logunsupported=0 in a later
 # file or on the command line (after pnglibconf.dfa)
+
 logunsupported = 1
 
 # PNG_USER_CONFIG has to be defined on the compiler command line
 # to cause pngusr.h to be read while constructing pnglibconf.h
 #
-# If this is set during the build 'pnglibconf.h' will define
-# PNG_USER_PRIVATEBUILD to the value that *must* be set by pngusr.h
-# and contain other definitions as below.
-#
 # If you create a private DLL you need to define the following
 # macros in the file 'pngusr.h' and set -DPNG_USER_CONFIG for
 # compilation (i.e. in CFLAGS.)
@@ -150,7 +144,7 @@
 
 # Note that PNG_USR_CONFIG only has an effect when building
 # pnglibconf.h
-setting USER_CONFIG requires USER_PRIVATEBUILD USER_DLLFNAME_POSTFIX
+setting USER_CONFIG
 setting USER_PRIVATEBUILD
 setting USER_DLLFNAME_POSTFIX
 setting USER_VERSIONINFO_COMMENTS
diff --git a/scripts/pnglibconf.h.prebuilt b/scripts/pnglibconf.h.prebuilt
index 2d821e6..c9724ea 100644
--- a/scripts/pnglibconf.h.prebuilt
+++ b/scripts/pnglibconf.h.prebuilt
@@ -1,7 +1,7 @@
 /* libpng-1.5.0beta45 STANDARD API DEFINITION */
 /* pnglibconf.h - library build configuration */
 
-/* last changed in libpng version 1.5.0 - August 24, 2010 */
+/* last changed in libpng version 1.5.0 - August 25, 2010 */
 
 /* Copyright (c) 1998-2010 Glenn Randers-Pehrson */
 
diff --git a/scripts/pngwin.dfn b/scripts/pngwin.dfn
index 8cb6790..4b9a605 100644
--- a/scripts/pngwin.dfn
+++ b/scripts/pngwin.dfn
@@ -1,7 +1,7 @@
 
 /* pngwin.dfn - define format of pngwin.def
  *
- * Last changed in libpng version 1.5.0 [August 24, 2010]
+ * Last changed in libpng version 1.5.0 [August 25, 2010]
  * Copyright (c) 1998-2010 Glenn Randers-Pehrson
  *
  * This code is released under the libpng license.
diff --git a/scripts/sym.dfn b/scripts/sym.dfn
index cdc1bcb..47d327e 100644
--- a/scripts/sym.dfn
+++ b/scripts/sym.dfn
@@ -1,7 +1,7 @@
 
 /* sym.dfn - define format of libpng.sym
  *
- * Last changed in libpng version 1.5.0 [August 24, 2010]
+ * Last changed in libpng version 1.5.0 [August 25, 2010]
  * Copyright (c) 1998-2010 Glenn Randers-Pehrson
  *
  * This code is released under the libpng license.
diff --git a/scripts/symbols.dfn b/scripts/symbols.dfn
index dfbd8c1..336e26c 100644
--- a/scripts/symbols.dfn
+++ b/scripts/symbols.dfn
@@ -1,7 +1,7 @@
 
 /* symbols.dfn - find all exported symbols
  *
- * Last changed in libpng version 1.5.0 [August 24, 2010]
+ * Last changed in libpng version 1.5.0 [August 25, 2010]
  * Copyright (c) 1998-2010 Glenn Randers-Pehrson
  *
  * This code is released under the libpng license.
diff --git a/scripts/vers.dfn b/scripts/vers.dfn
index c370d12..039e04a 100644
--- a/scripts/vers.dfn
+++ b/scripts/vers.dfn
@@ -1,7 +1,7 @@
 
 /* vers.dfn - define format of libpng.vers
  *
- * Last changed in libpng version 1.5.0 [August 24, 2010]
+ * Last changed in libpng version 1.5.0 [August 25, 2010]
  * Copyright (c) 1998-2010 Glenn Randers-Pehrson
  *
  * This code is released under the libpng license.