include: Add HandleToUlong, UlongToHandle, UintToPtr, UlongToPtr compatibility macros

Dmitry Timoshkov dmitry at codeweavers.com
Fri Jul 13 00:18:29 CDT 2007


Hello,

it looks like MS has introduced these macros to avoid confusion in
using upper/lower case mixup in ULong/Ulong and UInt/Uint.

Changelog:
    include: Add HandleToUlong, UlongToHandle, UintToPtr, UlongToPtr
    compatibility macros.

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

diff --git a/include/basetsd.h b/include/basetsd.h
index 7fba324..1f2bc9b 100644
--- a/include/basetsd.h
+++ b/include/basetsd.h
@@ -233,6 +233,14 @@ typedef unsigned short UHALF_PTR, *PUHALF_PTR;
 
 #endif /* defined(_WIN64) || defined(_WIN32) */
 
+/* Looks like MS introduced the following macros to avoid confusion in
+ * using upper/lower case mixup in ULong/Ulong and UInt/Uint.
+ */
+#define HandleToUlong(h)        HandleToULong(h)
+#define UlongToHandle(ul)       ULongToHandle(ul)
+#define UintToPtr(ui)           UIntToPtr(ui)
+#define UlongToPtr(ul)          ULongToPtr(ul)
+
 typedef LONG_PTR SSIZE_T, *PSSIZE_T;
 typedef ULONG_PTR SIZE_T, *PSIZE_T;
 
-- 
1.5.2.3






More information about the wine-patches mailing list