File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 26
26
****/
27
27
#pragma once
28
28
29
- #if _MSC_VER >= 1700
29
+ #if defined( _MSC_VER ) && _MSC_VER >= 1700
30
30
// Support VS2012 SAL syntax only
31
31
#include <sal.h>
32
32
#else
33
33
#include "cpprest/details/nosal.h"
34
34
#endif
35
35
36
- #define _noexcept
36
+ #if defined(_MSC_VER ) && _MSC_VER >= 1800
37
+ #define _noexcept noexcept
38
+ #else
39
+ #define _noexcept
40
+ #endif
37
41
38
42
#define CASABLANCA_UNREFERENCED_PARAMETER (x ) (x)
39
43
Original file line number Diff line number Diff line change @@ -697,11 +697,11 @@ bool JSON_StringParser<CharType>::CompleteComment(typename JSON_Parser<CharType>
697
697
return true ;
698
698
}
699
699
700
- void convert_append_unicode_code_unit (JSON_Parser<wchar_t >::Token &token, char16_t value)
700
+ void convert_append_unicode_code_unit (JSON_Parser<wchar_t >::Token &token, utf16char value)
701
701
{
702
702
token.string_val .push_back (value);
703
703
}
704
- void convert_append_unicode_code_unit (JSON_Parser<char >::Token &token, char16_t value)
704
+ void convert_append_unicode_code_unit (JSON_Parser<char >::Token &token, utf16char value)
705
705
{
706
706
utf16string utf16 (reinterpret_cast <utf16char *>(&value), 1 );
707
707
token.string_val .append (::utility::conversions::utf16_to_utf8 (utf16));
@@ -766,7 +766,7 @@ inline bool JSON_Parser<CharType>::handle_unescape_char(Token &token)
766
766
}
767
767
768
768
// Construct the character based on the decoded number
769
- convert_append_unicode_code_unit (token, static_cast <char16_t >(decoded));
769
+ convert_append_unicode_code_unit (token, static_cast <utf16char >(decoded));
770
770
771
771
return true ;
772
772
}
You can’t perform that action at this time.
0 commit comments