From 775ec212044964bf0444d46a1778a99415d8d9c2 Mon Sep 17 00:00:00 2001 From: Christoph von Wittich Date: Wed, 10 Sep 2008 06:52:51 +0000 Subject: [PATCH] add WINE_ALLOC_SIZE macro svn path=/trunk/; revision=36103 --- reactos/include/reactos/wine/winnt.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/reactos/include/reactos/wine/winnt.h b/reactos/include/reactos/wine/winnt.h index 4bfa2e7761b..a2efb693b1d 100644 --- a/reactos/include/reactos/wine/winnt.h +++ b/reactos/include/reactos/wine/winnt.h @@ -23,6 +23,12 @@ #include_next +#if defined(__GNUC__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 3))) +#define __WINE_ALLOC_SIZE(x) __attribute__((__alloc_size__(x))) +#else +#define __WINE_ALLOC_SIZE(x) +#endif + /* non standard; keep the number high enough (but < 0xff) */ #define LANG_ESPERANTO 0x8f #define LANG_WALON 0x90