From 3e2e35f5db41823fb3231639d291f0e5369056d2 Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Tue, 10 Aug 2010 10:25:10 +0000 Subject: [PATCH] [PSDK] - Add WINELIB_NAME_AW and DECL_WINELIB_TYPE_AW to the wine specific imm.h. svn path=/trunk/; revision=48509 --- reactos/include/reactos/wine/ddk/imm.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/reactos/include/reactos/wine/ddk/imm.h b/reactos/include/reactos/wine/ddk/imm.h index ee031142e6b..29242f38279 100644 --- a/reactos/include/reactos/wine/ddk/imm.h +++ b/reactos/include/reactos/wine/ddk/imm.h @@ -3,6 +3,25 @@ #define _WINE_IMM_H_ #include + +#ifdef WINE_NO_UNICODE_MACROS +# define WINELIB_NAME_AW(func) \ + func##_must_be_suffixed_with_W_or_A_in_this_context \ + func##_must_be_suffixed_with_W_or_A_in_this_context +#else /* WINE_NO_UNICODE_MACROS */ +# ifdef UNICODE +# define WINELIB_NAME_AW(func) func##W +# else +# define WINELIB_NAME_AW(func) func##A +# endif +#endif /* WINE_NO_UNICODE_MACROS */ + +#ifdef WINE_NO_UNICODE_MACROS +# define DECL_WINELIB_TYPE_AW(type) /* nothing */ +#else +# define DECL_WINELIB_TYPE_AW(type) typedef WINELIB_NAME_AW(type) type; +#endif + #include typedef struct _tagINPUTCONTEXT {