summaryrefslogtreecommitdiff
path: root/scripts/sym.dfn
diff options
context:
space:
mode:
authorGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2010-03-12 21:03:18 -0600
committerGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2010-03-12 21:03:18 -0600
commita528fba7aa9a936fd8b5560b9d47fb82e9d8526c (patch)
tree2f15613de269be6570bcba55e19bf720aa0d6039 /scripts/sym.dfn
parenteae8e36ec49407a5e9d928471759633600f056aa (diff)
downloadlibpng-a528fba7aa9a936fd8b5560b9d47fb82e9d8526c.tar.gz
[devel] Enabled 'attribute' warnings that are relevant to library APIs
and callbacks. Changed rules for generation of the various symbol files and added a new rule for a DEF file (which is also added to the distribution). Updated the symbol file generation to stop it adding spurious spaces to EOL (coming from preprocessor macro expansion). Added a facility to join tokens in the output and rewrite *.dfn to use this.
Diffstat (limited to 'scripts/sym.dfn')
-rw-r--r--scripts/sym.dfn15
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/sym.dfn b/scripts/sym.dfn
new file mode 100644
index 000000000..d2c219b49
--- /dev/null
+++ b/scripts/sym.dfn
@@ -0,0 +1,15 @@
+
+/* sym.dfn - define format of libpng.sym
+ *
+ * Last changed in libpng 1.5.0 [March 12, 2010]
+ * Copyright (c) 1998-2010 Glenn Randers-Pehrson
+ *
+ * This code is released under the libpng license.
+ * For conditions of distribution and use, see the disclaimer
+ * and license in png.h
+ */
+
+#define PNG_EXPORT(type, name, args, attributes, ordinal)\
+ PNG_DEFN_MAGIC-SYMBOL_PREFIX @@@ name-PNG_DEFN_END
+
+#include "../png.h"