summaryrefslogtreecommitdiffstats
path: root/lib/expat_external.h
diff options
context:
space:
mode:
authorExpat Upstream <kwrobot@kitware.com>2016-06-05 13:43:36 (GMT)
committerBrad King <brad.king@kitware.com>2016-06-06 13:08:21 (GMT)
commiteb83112347e16ac2c54690ae363935df9068ff78 (patch)
tree47d0ff58e60b4a6b2b33d7360dc48bc7fb622573 /lib/expat_external.h
parent318b1c17a96a2e1e93bc8a457e98770e829ea02c (diff)
downloadCMake-eb83112347e16ac2c54690ae363935df9068ff78.zip
CMake-eb83112347e16ac2c54690ae363935df9068ff78.tar.gz
CMake-eb83112347e16ac2c54690ae363935df9068ff78.tar.bz2
expat 2016-06-05 (2b9cb7f5)
Code extracted from: http://git.code.sf.net/p/expat/code_git at commit 2b9cb7f5b59397d2d04117a419cd3d9d50f4a1ed (master).
Diffstat (limited to 'lib/expat_external.h')
-rw-r--r--lib/expat_external.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/expat_external.h b/lib/expat_external.h
index 2c03284..aa08a2f 100644
--- a/lib/expat_external.h
+++ b/lib/expat_external.h
@@ -65,12 +65,26 @@
#endif
#endif /* not defined XML_STATIC */
+#if !defined(XMLIMPORT) && defined(__GNUC__) && (__GNUC__ >= 4)
+#define XMLIMPORT __attribute__ ((visibility ("default")))
+#endif
/* If we didn't define it above, define it away: */
#ifndef XMLIMPORT
#define XMLIMPORT
#endif
+#if defined(__GNUC__) && (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96))
+#define XML_ATTR_MALLOC __attribute__((__malloc__))
+#else
+#define XML_ATTR_MALLOC
+#endif
+
+#if defined(__GNUC__) && ((__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))
+#define XML_ATTR_ALLOC_SIZE(x) __attribute__((__alloc_size__(x)))
+#else
+#define XML_ATTR_ALLOC_SIZE(x)
+#endif
#define XMLPARSEAPI(type) XMLIMPORT type XMLCALL