Modify

Ticket #2722 (closed Bugs: wontfix)

Opened 5 years ago

Last modified 5 years ago

When using Boost Interprocess on Windows with Visual C++ Language Extensions turned off, unistd.h gets included

Reported by: derek.kivi@… Owned by: igaztanaga
Milestone: Boost 1.39.0 Component: interprocess
Version: Boost 1.37.0 Severity: Problem
Keywords: Cc:

Description

We are using the Interprocess library to make use of shared memory within our code. We are experiencing the following problem when building on Windows.

Some of our projects are trying to include unistd.h from workaround.hpp. It looks like this happens if BOOST_WINDOWS is not defined. Tracing back through the header files I pieced together that BOOST_WINDOWS is not defined if BOOST_DISABLE_WIN32 is defined (win32.hpp). And BOOST_DISABLE_WIN32 gets defined if _MSC_EXTENSIONS is not defined (visualc.hpp).

From the MSDN documentation, _MSC_EXTENSIONS is not defined if the Visual C++ Language Extensions are turned off, and in fact they are turned off for these projects.

Attachments

Change History

comment:1 Changed 5 years ago by igaztanaga

  • Status changed from new to closed
  • Resolution set to wontfix
  • Milestone changed from Boost 1.38.0 to Boost 1.39.0

Extensions are necessary to call Windows API functions and also because Boost.DateTime? needs them.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


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

 
Note: See TracTickets for help on using tickets.