Skip to content

Commit 5f487ba

Browse files
committed
Handle wchar_t-, fixes microsoft#179
1 parent aa2d08f commit 5f487ba

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Release/include/cpprest/streams.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,9 @@ namespace Concurrency { namespace streams
447447
_INT_TRAIT(char,INT8_MIN,INT8_MAX)
448448
_INT_TRAIT(signed char,INT8_MIN,INT8_MAX)
449449
_INT_TRAIT(short,INT16_MIN,INT16_MAX)
450-
_INT_TRAIT(utf16char,INT16_MIN,INT16_MAX)
450+
#if defined(_NATIVE_WCHAR_T_DEFINED)
451+
_INT_TRAIT(wchar_t,WCHAR_MIN, WCHAR_MAX)
452+
#endif
451453
_INT_TRAIT(int,INT32_MIN,INT32_MAX)
452454
_INT_TRAIT(long, LONG_MIN, LONG_MAX)
453455
_INT_TRAIT(long long, LLONG_MIN, LLONG_MAX)

0 commit comments

Comments
 (0)