Modify

Opened 3 years ago

Closed 3 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@…> 3 years ago.

Download all attachments as: .zip

Change History (2)

Changed 3 years ago by Minmin Gong <gongminmin@…>

comment:1 Changed 3 years ago by Ion Gaztañaga

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.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ion Gaztañaga.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.