summaryrefslogtreecommitdiff
path: root/sal/inc
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2011-09-19 02:50:58 +0200
committerJan Holesovsky <kendy@suse.cz>2011-09-19 03:14:31 +0200
commit9804e0ae666fc051f4ee05e4b19901ae4dd00fa0 (patch)
tree42d19dcd63bb21c99eab1537b588bddc43373f87 /sal/inc
parent77347b0bcedccff50b290ec5f5039bef1725ce5d (diff)
Add a clarifying comment (MinGW special case).
Diffstat (limited to 'sal/inc')
-rw-r--r--sal/inc/sal/types.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sal/inc/sal/types.h b/sal/inc/sal/types.h
index df2b96317875..f9725d6ecd0e 100644
--- a/sal/inc/sal/types.h
+++ b/sal/inc/sal/types.h
@@ -150,6 +150,10 @@ typedef signed char sal_sChar;
typedef unsigned char sal_uChar;
#if ( defined(SAL_W32) && !defined(__MINGW32__) )
+ // http://msdn.microsoft.com/en-us/library/s3f49ktz%28v=vs.80%29.aspx
+ // "By default wchar_t is a typedef for unsigned short."
+ // But MinGW has a native wchar_t, and on many places, we cannot deal with
+ // that, so sal_Unicode has to be explicitly typedef'd as sal_uInt16 there.
typedef wchar_t sal_Unicode;
#else
#define SAL_UNICODE_NOTEQUAL_WCHAR_T