summaryrefslogtreecommitdiff
path: root/pngdebug.h
diff options
context:
space:
mode:
authorGlenn Randers-Pehrson <glennrp@shaggy.simplesystems.org>2010-04-16 22:12:51 -0500
committerGlenn Randers-Pehrson <glennrp@shaggy.simplesystems.org>2010-04-16 22:12:51 -0500
commit862cb20ea60f78a05cb4c8a6cdc33f23bebe3248 (patch)
tree2cfd8a6d5c82aeb5de4f8e328786a7b09930f9d5 /pngdebug.h
parent3cd7cffd0c17c1bd31d7dc9c52923179a557caa0 (diff)
downloadlibpng-862cb20ea60f78a05cb4c8a6cdc33f23bebe3248.tar.gz
[devel] Freeze build-time only configuration in the build.
In all prior versions of libpng most configuration options controlled by compiler #defines had to be repeated by the application code that used libpng. This patch changes this so that compilation options that can only be changed at build time are frozen in the build. Options that are compiler dependent (and those that are system dependent) are evaluated each time - pngconf.h holds these. Options that can be changed per-file in the application are in png.h. Frozen options are in the new installed header file pnglconf.h
Diffstat (limited to 'pngdebug.h')
-rw-r--r--pngdebug.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/pngdebug.h b/pngdebug.h
index f76778d73..88e128118 100644
--- a/pngdebug.h
+++ b/pngdebug.h
@@ -34,6 +34,21 @@
*/
#ifndef PNGDEBUG_H
#define PNGDEBUG_H
+/* These settings control the formatting of messages in pngerror.c */
+/* Moved to pngdebug.h at 1.5.0 */
+# ifndef PNG_LITERAL_SHARP
+# define PNG_LITERAL_SHARP 0x23
+# endif
+# ifndef PNG_LITERAL_LEFT_SQUARE_BRACKET
+# define PNG_LITERAL_LEFT_SQUARE_BRACKET 0x5b
+# endif
+# ifndef PNG_LITERAL_RIGHT_SQUARE_BRACKET
+# define PNG_LITERAL_RIGHT_SQUARE_BRACKET 0x5d
+# endif
+# ifndef PNG_STRING_NEWLINE
+# define PNG_STRING_NEWLINE "\n"
+# endif
+
#ifdef PNG_DEBUG
# if (PNG_DEBUG > 0)
# if !defined(PNG_DEBUG_FILE) && defined(_MSC_VER)
@@ -54,6 +69,9 @@
# endif
# endif
# else /* PNG_DEBUG_FILE || !_MSC_VER */
+# ifndef PNG_STDIO_SUPPORTED
+# include <stdio.h> /* not included yet */
+# endif
# ifndef PNG_DEBUG_FILE
# define PNG_DEBUG_FILE stderr
# endif /* PNG_DEBUG_FILE */