libxml2 r3812 - in trunk: . include/libxml



Author: veillard
Date: Sun Jan 18 19:41:26 2009
New Revision: 3812
URL: http://svn.gnome.org/viewvc/libxml2?rev=3812&view=rev

Log:
* include/libxml/xmlwin32version.h.in: windows header should
  get the same define
Daniel


Modified:
   trunk/ChangeLog
   trunk/include/libxml/xmlwin32version.h.in

Modified: trunk/include/libxml/xmlwin32version.h.in
==============================================================================
--- trunk/include/libxml/xmlwin32version.h.in	(original)
+++ trunk/include/libxml/xmlwin32version.h.in	Sun Jan 18 19:41:26 2009
@@ -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
 
 /*



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]