Skip to content

Commit a131401

Browse files
committed
Merge branch 'remove_sync' into stream_missing_data
2 parents bacaffa + b0d6b89 commit a131401

25 files changed

+543
-411
lines changed

Release/include/compat/apple_compat.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
#pragma once
2525

2626
#include <cstdint>
27-
#include <string>
2827
#include <sstream>
2928
#include <iostream>
3029
#define __cdecl
@@ -53,13 +52,3 @@
5352
#else
5453
#define CASABLANCA_DEPRECATED(x) __attribute__((deprecated(x)))
5554
#endif
56-
57-
#include <string>
58-
59-
typedef char16_t utf16char;
60-
typedef std::u16string utf16string;
61-
typedef std::basic_stringstream<char16_t> utf16stringstream;
62-
typedef std::basic_ostringstream<char16_t> utf16ostringstream;
63-
typedef std::basic_ostream<char16_t> utf16ostream;
64-
typedef std::basic_istream<char16_t> utf16istream;
65-
typedef std::basic_istringstream<char16_t> utf16istringstream;

Release/include/compat/linux_compat.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222

2323
#pragma once
2424
#include <cstdint>
25-
#include <string>
2625
#include <sstream>
2726
#include <iostream>
2827
#define __cdecl __attribute__ ((cdecl))
@@ -55,13 +54,3 @@
5554
#define CASABLANCA_DEPRECATED(x) __attribute__((deprecated(x)))
5655
#endif
5756

58-
#include <string>
59-
60-
typedef char16_t utf16char;
61-
typedef std::u16string utf16string;
62-
typedef std::basic_stringstream<char16_t> utf16stringstream;
63-
typedef std::basic_ostringstream<char16_t> utf16ostringstream;
64-
typedef std::basic_ostream<char16_t> utf16ostream;
65-
typedef std::basic_istream<char16_t> utf16istream;
66-
typedef std::basic_istringstream<char16_t> utf16istringstream;
67-

Release/include/compat/windows_compat.h

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@
2626
****/
2727
#pragma once
2828

29-
#include <string>
30-
3129
#if _MSC_VER >= 1700
3230
// Support VS2012 SAL syntax only
3331
#include <sal.h>
@@ -43,12 +41,4 @@
4341
#define CASABLANCA_DEPRECATED(x)
4442
#else
4543
#define CASABLANCA_DEPRECATED(x) __declspec(deprecated(x))
46-
#endif
47-
48-
typedef wchar_t utf16char;
49-
typedef std::wstring utf16string;
50-
typedef std::wstringstream utf16stringstream;
51-
typedef std::wostringstream utf16ostringstream;
52-
typedef std::wostream utf16ostream;
53-
typedef std::wistream utf16istream;
54-
typedef std::wistringstream utf16istringstream;
44+
#endif

Release/include/cpprest/basic_types.h

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,3 +99,29 @@ typedef std::stringstream stringstream_t;
9999
#endif // !_TURN_OFF_PLATFORM_STRING
100100

101101
}// namespace utility
102+
103+
typedef char utf8char;
104+
typedef std::string utf8string;
105+
typedef std::stringstream utf8stringstream;
106+
typedef std::ostringstream utf8ostringstream;
107+
typedef std::ostream utf8ostream;
108+
typedef std::istream utf8istream;
109+
typedef std::istringstream utf8istringstream;
110+
111+
#ifdef _UTF16_STRINGS
112+
typedef wchar_t utf16char;
113+
typedef std::wstring utf16string;
114+
typedef std::wstringstream utf16stringstream;
115+
typedef std::wostringstream utf16ostringstream;
116+
typedef std::wostream utf16ostream;
117+
typedef std::wistream utf16istream;
118+
typedef std::wistringstream utf16istringstream;
119+
#else
120+
typedef char16_t utf16char;
121+
typedef std::u16string utf16string;
122+
typedef std::basic_stringstream<utf16char> utf16stringstream;
123+
typedef std::basic_ostringstream<utf16char> utf16ostringstream;
124+
typedef std::basic_ostream<utf16char> utf16ostream;
125+
typedef std::basic_istream<utf16char> utf16istream;
126+
typedef std::basic_istringstream<utf16char> utf16istringstream;
127+
#endif

0 commit comments

Comments
 (0)