Modify

Opened 8 years ago

Closed 8 years ago

#2722 closed Bugs (wontfix)

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

Reported by: derek.kivi@… Owned by: Ion Gaztañaga
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 (0)

Change History (1)

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

Milestone: Boost 1.38.0Boost 1.39.0
Resolution: wontfix
Status: newclosed

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

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.