summaryrefslogtreecommitdiff
path: root/pngpriv.h
diff options
context:
space:
mode:
authorJohn Bowler <jbowler@acm.org>2012-01-31 07:28:13 -0600
committerGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2012-01-31 07:28:13 -0600
commit42369ccd85a48c0802093ecf02444cc4dfc4f1dd (patch)
tree01453795611dae936fa8e27f1cfcab9f6a47f1f4 /pngpriv.h
parent572b078d8c660ba85ca4189d653f5c7eef7e5ae4 (diff)
downloadlibpng-42369ccd85a48c0802093ecf02444cc4dfc4f1dd.tar.gz
[libpng16] Added symbol prefixing that allows all the libpng external symbols
to be prefixed (suggested by Reuben Hawkins). This is work in progress that breaks some non-configure builds.
Diffstat (limited to 'pngpriv.h')
-rw-r--r--pngpriv.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/pngpriv.h b/pngpriv.h
index 2ae512298..731b4ef05 100644
--- a/pngpriv.h
+++ b/pngpriv.h
@@ -139,6 +139,7 @@
#include "png.h"
#include "pnginfo.h"
#include "pngstruct.h"
+#include "pngprefix.h"
/* pngconf.h does not set PNG_DLL_EXPORT unless it is required, so: */
#ifndef PNG_DLL_EXPORT
@@ -360,9 +361,14 @@ typedef const png_uint_16p * png_const_uint_16pp;
* To enable listing global, but internal, symbols the following macros should
* always be used to declare an extern data or function object in this file.
*/
-#define PNG_INTERNAL_DATA(type, name, array) extern type name array
-#define PNG_INTERNAL_FUNCTION(type, name, args, attributes)\
- extern PNG_FUNCTION(type, name, args, PNG_EMPTY attributes)
+#ifndef PNG_INTERNAL_DATA
+# define PNG_INTERNAL_DATA(type, name, array) extern type name array
+#endif
+
+#ifndef PNG_INTERNAL_FUNCTION
+# define PNG_INTERNAL_FUNCTION(type, name, args, attributes)\
+ extern PNG_FUNCTION(type, name, args, PNG_EMPTY attributes)
+#endif
/* CONSTANTS and UTILITY MACROS
* These are used internally by libpng and not exposed in the API