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
diff --git a/ChangeLog b/ChangeLog
index 889b361..8a7baaa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Sun Jan 18 20:40:42 CET 2009 Daniel Veillard <daniel@veillard.com>
+
+	* include/libxml/xmlwin32version.h.in: windows header should
+	  get the same define
+
 Sun Jan 18 18:22:33 CET 2009 Daniel Veillard <daniel@veillard.com>
 
 	* include/libxml/xmlversion.h.in include/libxml/xmlmemory.h:
diff --git a/include/libxml/xmlwin32version.h.in b/include/libxml/xmlwin32version.h.in
index 544d5a9..f669df4 100644
--- a/include/libxml/xmlwin32version.h.in
+++ b/include/libxml/xmlwin32version.h.in
@@ -254,8 +254,18 @@
 #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
 
 /*