File tree Expand file tree Collapse file tree 7 files changed +26
-17
lines changed Expand file tree Collapse file tree 7 files changed +26
-17
lines changed Original file line number Diff line number Diff line change 30
30
#include < iostream>
31
31
#include < sstream>
32
32
#include " cpprest/details/cpprest_compat.h"
33
+ #include " cpprest/details/basic_types.h"
33
34
34
35
#ifndef _WIN32
35
36
# define __STDC_LIMIT_MACROS
@@ -122,3 +123,19 @@ typedef std::basic_ostream<utf16char> utf16ostream;
122
123
typedef std::basic_istream<utf16char> utf16istream;
123
124
typedef std::basic_istringstream<utf16char> utf16istringstream;
124
125
#endif
126
+
127
+
128
+ #if defined(_WIN32)
129
+ // Include on everything except Windows Desktop ARM, unless explicitly excluded.
130
+ #if !defined(CPPREST_EXCLUDE_WEBSOCKETS)
131
+ #if defined(WINAPI_FAMILY)
132
+ #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) && defined(_M_ARM)
133
+ #define CPPREST_EXCLUDE_WEBSOCKETS
134
+ #endif
135
+ #else
136
+ #if defined(_M_ARM)
137
+ #define CPPREST_EXCLUDE_WEBSOCKETS
138
+ #endif
139
+ #endif
140
+ #endif
141
+ #endif
Original file line number Diff line number Diff line change 36
36
37
37
#define CASABLANCA_UNREFERENCED_PARAMETER (x ) (x)
38
38
39
- #if _MSC_VER >= 1700
40
- // Support VS2012 SAL syntax only
41
39
#include <sal.h>
42
- #else
43
- #include "cpprest/details/nosal.h"
44
- #endif
45
40
46
41
#else // End settings specific to Windows
47
42
Original file line number Diff line number Diff line change 25
25
#ifndef _CASA_WS_CLIENT_H
26
26
#define _CASA_WS_CLIENT_H
27
27
28
- // Include on everything except Windows Desktop ARM, unless explicitly excluded.
29
- #if !defined(_MSC_VER) || (WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) && !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)) || (WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) && !defined(_M_ARM)) && !defined(CPPREST_EXCLUDE_WEBSOCKETS)
28
+ #include " cpprest/details/basic_types.h"
29
+
30
+ #if !defined(CPPREST_EXCLUDE_WEBSOCKETS)
30
31
31
32
#include < memory>
32
33
#include < limits>
37
38
#include " cpprest/uri.h"
38
39
#include " cpprest/details/web_utilities.h"
39
40
#include " cpprest/http_headers.h"
40
- #include " cpprest/details/basic_types.h"
41
41
#include " cpprest/asyncrt_utils.h"
42
42
#include " cpprest/ws_msg.h"
43
43
Original file line number Diff line number Diff line change 22
22
****/
23
23
#pragma once
24
24
25
- // Include on everything except Windows Desktop ARM, unless explicitly excluded.
26
- #if !defined(_MSC_VER) || (WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) && !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)) || (WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) && !defined(_M_ARM)) && !defined(CPPREST_EXCLUDE_WEBSOCKETS)
25
+ #include " cpprest/details/basic_types.h"
26
+
27
+ #if !defined(CPPREST_EXCLUDE_WEBSOCKETS)
27
28
28
29
#include < memory>
29
30
#include < limits>
32
33
#include " cpprest/streams.h"
33
34
#include " cpprest/containerstream.h"
34
35
#include " cpprest/uri.h"
35
- #include " cpprest/details/basic_types.h"
36
36
#include " cpprest/asyncrt_utils.h"
37
37
38
38
namespace web
Original file line number Diff line number Diff line change 22
22
****/
23
23
#include " stdafx.h"
24
24
25
- // Include on everything except Windows Desktop ARM, unless explicitly excluded.
26
- #if !defined(_MSC_VER) || (WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) && !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)) || (WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) && !defined(_M_ARM)) && !defined(CPPREST_EXCLUDE_WEBSOCKETS)
25
+ #if !defined(CPPREST_EXCLUDE_WEBSOCKETS)
27
26
28
27
namespace web
29
28
{
Original file line number Diff line number Diff line change 26
26
#include " stdafx.h"
27
27
#include " cpprest/details/x509_cert_utilities.h"
28
28
29
- // Include on everything except Windows Desktop ARM, unless explicitly excluded.
30
- #if !defined(_MSC_VER) || (WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) && !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)) || (WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) && !defined(_M_ARM)) && !defined(CPPREST_EXCLUDE_WEBSOCKETS)
29
+ #if !defined(CPPREST_EXCLUDE_WEBSOCKETS)
31
30
32
31
// Force websocketpp to use C++ std::error_code instead of Boost.
33
32
#define _WEBSOCKETPP_CPP11_SYSTEM_ERROR_
Original file line number Diff line number Diff line change 26
26
****/
27
27
#include " stdafx.h"
28
28
29
- // Include on everything except Windows Desktop ARM, unless explicitly excluded.
30
- #if !defined(_MSC_VER) || (WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) && !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)) || (WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) && !defined(_M_ARM)) && !defined(CPPREST_EXCLUDE_WEBSOCKETS)
29
+ #if !defined(CPPREST_EXCLUDE_WEBSOCKETS)
31
30
32
31
using namespace concurrency ;
33
32
using namespace concurrency ::streams::details;
You can’t perform that action at this time.
0 commit comments