summaryrefslogtreecommitdiff
path: root/include/libxml/xmlwin32version.h.in
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2009-01-18 19:41:26 +0000
committerDaniel Veillard <veillard@src.gnome.org>2009-01-18 19:41:26 +0000
commitd032a5bc212143649e7d5a55a1180fba34b18185 (patch)
treeea5fdf1dd71c6a13127be89e823e14a69ec29459 /include/libxml/xmlwin32version.h.in
parentd4d4705780933c7ad181a7bd902c91d1d1adaba3 (diff)
downloadlibxml2-d032a5bc212143649e7d5a55a1180fba34b18185.tar.gz
windows header should get the same define Daniel
* include/libxml/xmlwin32version.h.in: windows header should get the same define Daniel svn path=/trunk/; revision=3812
Diffstat (limited to 'include/libxml/xmlwin32version.h.in')
-rw-r--r--include/libxml/xmlwin32version.h.in10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/libxml/xmlwin32version.h.in b/include/libxml/xmlwin32version.h.in
index 544d5a97..f669df44 100644
--- a/include/libxml/xmlwin32version.h.in
+++ b/include/libxml/xmlwin32version.h.in
@@ -254,8 +254,18 @@ extern void xmlCheckVersion(int version);
#ifndef ATTRIBUTE_UNUSED
#define ATTRIBUTE_UNUSED
#endif
+#ifndef ATTRIBUTE_ALLOC_SIZE
+# if ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 3)))
+# define ATTRIBUTE_ALLOC_SIZE(x) __attribute__((alloc_size(x)))
+# else
+# define ATTRIBUTE_ALLOC_SIZE(x)
+# endif
+#else
+# define ATTRIBUTE_ALLOC_SIZE(x)
+#endif
#else
#define ATTRIBUTE_UNUSED
+#define ATTRIBUTE_ALLOC_SIZE(x)
#endif
/*