Opened 9 years ago
Closed 8 years ago
#9195 closed Bugs (fixed)
WinRT detection failed
Reported by: | anonymous | Owned by: | chris_kohlhoff |
---|---|---|---|
Milestone: | To Be Determined | Component: | asio |
Version: | Boost 1.55.0 | Severity: | Problem |
Keywords: | Cc: |
Description
I have a normal desktop programm (using VS2012 & Win7x64) but asio think it is a WinRT app (BOOST_ASIO_WINDOWS_RUNTIME is set).
To fix this issue I have to update WinRT detection in boost\asio\detail\config.hpp line 458:
# if (WINAPI_FAMILY == WINAPI_FAMILY_APP)
instead of
# if ((WINAPI_FAMILY & WINAPI_PARTITION_APP) != 0)
Change History (4)
comment:1 by , 9 years ago
comment:3 by , 9 years ago
Replying to anonymous:
Your code is working for me. Thanks!
Hi, I want to use the BOOST lib for WINRT.Can you please help me how to get code for WINRT windows 8.
comment:4 by , 8 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Was fixed for boost 1.55 in r86152.
Note:
See TracTickets
for help on using tickets.
I suspect the problem is even more complicated, because I also need to ensure the macros in winapifamily.h are defined ahead of the test. As that header is only available from the v8.0 sdk and later, I've enclosed that #include within a test for
__cplusplus_winrt
.Can you please try the following and let me know if it works for you: