Opened 8 years ago

Closed 8 years ago

#10021 closed Bugs (fixed)

Interprocess and BOOST_USE_WINDOWS_H

Reported by: Minmin Gong <gongminmin@…> 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)

boost_interprocess_use_windows_h.patch (11.1 KB ) - added by Minmin Gong <gongminmin@…> 8 years ago.

Download all attachments as: .zip

Change History (2)

by Minmin Gong <gongminmin@…>, 8 years ago

comment:1 by Ion Gaztañaga, 8 years ago

Resolution: fixed
Status: newclosed

Thanks for the report and the patch. Inspired in your patch I committed to develop branch:

SHA-1: de405e89a3208e6a12f617d730dc206eca25911a

  • If BOOST_USE_WINDOWS_H is 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.

  • Added get_size to windows_shared_memory.
Note: See TracTickets for help on using tickets.