Opened 8 years ago
Closed 8 years ago
#10021 closed Bugs (fixed)
Interprocess and BOOST_USE_WINDOWS_H
| Reported by: | Owned by: | Ion Gaztañaga | |
|---|---|---|---|
| Milestone: | To Be Determined | Component: | interprocess |
| Version: | Boost 1.55.0 | Severity: | Problem |
| Keywords: | windows.h | Cc: |
Description
Unlike other libraries, Boost.Interprocess doesn't use BOOST_USE_WINDOWS_H for Windows APIs. Instead, it declares used Windows APIs in boost/interprocess/detail/win32_api.hpp. The incompatible declares make some troubles in Clang and MinGW. Why not just regard to BOOST_USE_WINDOWS_H?
Attachments (1)
Change History (2)
by , 8 years ago
| Attachment: | boost_interprocess_use_windows_h.patch added |
|---|
comment:1 by , 8 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

Thanks for the report and the patch. Inspired in your patch I committed to develop branch:
SHA-1: de405e89a3208e6a12f617d730dc206eca25911a
BOOST_USE_WINDOWS_His defined, <windows.h> and other windows SDK files are included,otherwise the library declares needed functions and structures to reduce the impact of including those heavy headers.
get_sizeto windows_shared_memory.