We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92e5f82 commit 01183d7Copy full SHA for 01183d7
Modules/expat/expat_external.h
@@ -112,14 +112,14 @@
112
# define XMLIMPORT
113
#endif
114
115
-#if defined(__GNUC__) \
+#if defined(__clang__) || defined(__GNUC__) \
116
&& (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96))
117
# define XML_ATTR_MALLOC __attribute__((__malloc__))
118
#else
119
# define XML_ATTR_MALLOC
120
121
122
123
&& ((__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))
124
# define XML_ATTR_ALLOC_SIZE(x) __attribute__((__alloc_size__(x)))
125
0 commit comments