File tree Expand file tree Collapse file tree 7 files changed +13
-12
lines changed Expand file tree Collapse file tree 7 files changed +13
-12
lines changed Original file line number Diff line number Diff line change 37
37
38
38
#include " cpprest/xxpublic.h"
39
39
40
+ #if _NOT_PHONE8_
40
41
#if defined(_MSC_VER) && (_MSC_VER >= 1800)
41
42
#include < ppltasks.h>
42
43
namespace pplx = Concurrency;
@@ -397,5 +398,6 @@ class websocket_client
397
398
398
399
}}}}
399
400
401
+ #endif // _NOT_PHONE8_
400
402
#endif
401
403
#endif /* _CASA_WS_CLIENT_H */
Original file line number Diff line number Diff line change 35
35
#include " cpprest/xxpublic.h"
36
36
#include " cpprest/containerstream.h"
37
37
38
+ #if _NOT_PHONE8_
38
39
#if defined(_MSC_VER) && (_MSC_VER >= 1800)
39
40
#include < ppltasks.h>
40
41
namespace pplx = Concurrency;
@@ -239,6 +240,6 @@ class websocket_incoming_message
239
240
240
241
}}}}
241
242
243
+ #endif // _NOT_PHONE8_
242
244
#endif
243
-
244
245
#endif /* _CASA_WS_MSG_H */
Original file line number Diff line number Diff line change 68
68
#ifdef __clang__
69
69
#include <cstdio>
70
70
#endif
71
+
72
+ // Define the _NOT_PHONE8_ as non-windows or windows desktop without arm configuration or windows store app or windows phone8.1
73
+ #define _NOT_PHONE8_ !defined(WINAPI_FAMILY) || (WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP && !defined(_M_ARM)) || WINAPI_FAMILY == WINAPI_FAMILY_APP || (WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP && _WIN32_WINNT == _WIN32_WINNT_WINBLUE)
Original file line number Diff line number Diff line change 34
34
35
35
<ItemDefinitionGroup >
36
36
<ClCompile >
37
- <PreprocessorDefinitions >_ASYNCRT_EXPORT;_PPLX_EXPORT;_PHONE8_;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions >
37
+ <PreprocessorDefinitions >WINAPI_FAMILY=WINAPI_FAMILY_PHONE_APP; _ASYNCRT_EXPORT;_PPLX_EXPORT;_PHONE8_;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions >
38
38
<AdditionalUsingDirectories >$(WindowsSDK_MetadataPath);$(AdditionalUsingDirectories)</AdditionalUsingDirectories >
39
39
<CompileAsWinRT >true</CompileAsWinRT >
40
40
<AdditionalIncludeDirectories >$(CasablancaIncludeDir);$(CasablancaSrcDir)\pch;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories >
Original file line number Diff line number Diff line change 37
37
</PropertyGroup >
38
38
<ItemDefinitionGroup >
39
39
<ClCompile >
40
- <PreprocessorDefinitions >WINAPI_FAMILY=WINAPI_PARTITION_PHONE_APP ;_ASYNCRT_EXPORT;_PPLX_EXPORT;_PHONE81_ ;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions >
40
+ <PreprocessorDefinitions >WINAPI_FAMILY=WINAPI_FAMILY_PHONE_APP ;_ASYNCRT_EXPORT;_PPLX_EXPORT;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions >
41
41
<AdditionalUsingDirectories >$(WindowsSdkDir)\References\CommonConfiguration\Neutral;$(VSInstallDir)\vc\vcpackages;$(AdditionalUsingDirectories)</AdditionalUsingDirectories >
42
42
<CompileAsWinRT >true</CompileAsWinRT >
43
43
<AdditionalIncludeDirectories >$(CasablancaIncludeDir);$(CasablancaSrcDir)\pch;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories >
Original file line number Diff line number Diff line change 32
32
#include " cpprest/ws_client.h"
33
33
34
34
#if !defined(_M_ARM) || defined(__cplusplus_winrt)
35
- #if defined(WINAPI_FAMILY_APP) && WINAPI_FAMILY == WINAPI_FAMILY_APP
36
-
37
- using namespace ::Windows::Foundation;
38
- using namespace ::Windows::Storage;
39
- using namespace ::Windows::Storage::Streams;
40
- using namespace ::Windows::Networking;
41
- using namespace ::Windows::Networking::Sockets;
42
- #endif /* WINAPI_FAMILY == WINAPI_FAMILY_APP */
35
+ #if _NOT_PHONE8_
43
36
44
37
using namespace concurrency ;
45
38
using namespace concurrency ::streams::details;
@@ -94,4 +87,5 @@ pplx::task<std::string> websocket_incoming_message::extract_string() const
94
87
}
95
88
96
89
}}}}
90
+ #endif // _NOT_PHONE8_
97
91
#endif
Original file line number Diff line number Diff line change 27
27
#include " stdafx.h"
28
28
#include < concrt.h>
29
29
30
- #if WINAPI_FAMILY == WINAPI_FAMILY_APP
30
+ // ws_winrt only available for windows storea app or window phone8.1
31
+ #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_PC_APP) || (WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_PHONE_APP) && _WIN32_WINNT == _WIN32_WINNT_WINBLUE)
31
32
32
33
using namespace ::Windows::Foundation;
33
34
using namespace ::Windows::Storage;
You can’t perform that action at this time.
0 commit comments