Changeset 99802 in vbox for trunk/include/iprt
- Timestamp:
- May 16, 2023 12:05:16 AM (19 months ago)
- Location:
- trunk/include/iprt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/nocrt/limits.h
r98103 r99802 54 54 #endif 55 55 56 #if !defined(WCHAR_MIN) 57 # if defined(RT_OS_WINDOWS) 58 # define WCHAR_MIN 0 59 # endif 60 #endif 61 #if !defined(WCHAR_MAX) 62 # if defined(RT_OS_WINDOWS) 63 # define WCHAR_MAX 0xffff 64 # endif 65 #endif 66 /** @todo Define WCHAR_MIN+WCHAR_MAX on non-windows */ 67 56 68 #define WORD_BIT 16 57 69 #define USHRT_MAX 0xffff -
trunk/include/iprt/types.h
r99427 r99802 3384 3384 3385 3385 /** 3386 * UTF-16 character. 3387 * @remark wchar_t is not usable since it's compiler defined. 3386 * UTF-16 character. 3387 * 3388 * @remark wchar_t is not usable since it's compiler defined and can be 8 thru 3389 * 64 bit wide. On Windows it is 16-bit, though, and for various 3390 * reasons of convenience we need to use the native compiler type when 3391 * compling without the /Zc:wchar_t- option (only relevant for C++ and 3392 * _NATIVE_WCHAR_T_DEFINED indicates the absense of /Zc:wchar_t-). 3393 * 3388 3394 * @remark When we use the term character we're not talking about unicode code point, but 3389 3395 * the basic unit of the string encoding. Thus cwc - count of wide chars - means … … 3391 3397 * and cch means count of the typedef 'char', which is assumed to be an octet. 3392 3398 */ 3399 #if defined(_MSC_VER) && defined(__cplusplus) && defined(_NATIVE_WCHAR_T_DEFINED) 3400 typedef __wchar_t RTUTF16; 3401 #else 3393 3402 typedef uint16_t RTUTF16; 3403 #endif 3394 3404 /** Pointer to a UTF-16 character. */ 3395 3405 typedef RTUTF16 RT_FAR *PRTUTF16;
Note:
See TracChangeset
for help on using the changeset viewer.