diff options
author | Expat Upstream <kwrobot@kitware.com> | 2016-06-05 13:43:36 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-06-06 13:08:21 (GMT) |
commit | eb83112347e16ac2c54690ae363935df9068ff78 (patch) | |
tree | 47d0ff58e60b4a6b2b33d7360dc48bc7fb622573 /lib/expat_external.h | |
parent | 318b1c17a96a2e1e93bc8a457e98770e829ea02c (diff) | |
download | CMake-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.h | 14 |
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 |