[include] add new macro WINELIB_NAME_W for support in the unicode functions of msvcr* dlls

Vijay Kiran Kamuju infyquest at gmail.com
Sat Nov 20 13:25:22 CST 2010


Changelog
---------------
[include] add new macro WINELIB_NAME_W for support in the unicode functions
of msvcr* dlls
It helps functions like _RTC_error_fn and _CRT_RTC_INIT
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20101120/9a5efc4a/attachment.htm>
-------------- next part --------------
From ce6560f3d8f36f172b33eb0be93240ee0a567709 Mon Sep 17 00:00:00 2001
From: Vijay Kiran Kamuju <infyquest at gmail.com>
Date: Sat, 20 Nov 2010 14:20:26 -0500
Subject: [PATCH 4/4] [include] add new macro for WINELIB_NAME_W for support in unicode functions of msvcr* dlls

---
 include/windef.h |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/include/windef.h b/include/windef.h
index 8f5ea30..5b55d93 100644
--- a/include/windef.h
+++ b/include/windef.h
@@ -235,11 +235,16 @@ typedef unsigned int    ULONG,      *PULONG;
 # 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
+# define WINELIB_NAME_W(func) \
+    func##_must_be_suffixed_with_W_or_in_this_context \
+    func##_must_be_suffixed_with_W_or_in_this_context
 #else  /* WINE_NO_UNICODE_MACROS */
 # ifdef UNICODE
 #  define WINELIB_NAME_AW(func) func##W
+#  define WINELIB_NAME_W(func)  func##W
 # else
 #  define WINELIB_NAME_AW(func) func##A
+#  define WINELIB_NAME_W(func)  func##
 # endif
 #endif  /* WINE_NO_UNICODE_MACROS */
 
-- 
1.7.1


More information about the wine-patches mailing list