Re: [PATCH] annotate with allocation size attribute
4 Sep
2008
4 Sep
'08
12:19 p.m.
Marcus Meissner <marcus(a)jet.franken.de> writes:
--- a/include/windef.h +++ b/include/windef.h @@ -49,6 +49,12 @@ extern "C" { #define _WIN64 #endif
+#if ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 4) +#define ALLOC_SIZE(x) __attribute__((__alloc_size__(x))) +#else +#define ALLOC_SIZE(x) +#endif
Since this is an exported header you should use a name that is less likely to conflict with user macros, something like __WINE_ALLOC_SIZE. -- Alexandre Julliard julliard(a)winehq.org
6311
Age (days ago)
6311
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard