Skip to content

Commit a332c23

Browse files
committed
Updating check to make Boost.Asio think CE is in use to be only for before VS2015.
1 parent fc38c07 commit a332c23

File tree

1 file changed

+3
-1
lines changed
  • Release/tests/functional/websockets/utilities

1 file changed

+3
-1
lines changed

Release/tests/functional/websockets/utilities/stdafx.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,13 @@
3232

3333
#if defined(_WIN32)
3434
// Trick Boost.Asio into thinking CE, otherwise _beginthreadex will be used which is banned
35-
// for the Windows Runtime. Then CreateThread will be used instead.
35+
// for the Windows Runtime pre VS2015. Then CreateThread will be used instead.
36+
#if _MSC_VER < 1900
3637
#if defined(__cplusplus_winrt)
3738
#define UNDER_CE 1
3839
#endif
3940
#endif
41+
#endif
4042

4143
#include "cpprest/uri.h"
4244
#include "cpprest/asyncrt_utils.h"

0 commit comments

Comments
 (0)