[Boost-bugs] [Boost C++ Libraries] #2722: When using Boost Interprocess on Windows with Visual C++ Language Extensions turned off, unistd.h gets included

Subject: [Boost-bugs] [Boost C++ Libraries] #2722: When using Boost Interprocess on Windows with Visual C++ Language Extensions turned off, unistd.h gets included
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-02-03 18:36:21


#2722: When using Boost Interprocess on Windows with Visual C++ Language
Extensions turned off, unistd.h gets included
---------------------------------+------------------------------------------
 Reporter: derek.kivi_at_[hidden] | Owner: igaztanaga
     Type: Bugs | Status: new
Milestone: Boost 1.38.0 | Component: interprocess
  Version: Boost 1.37.0 | Severity: Problem
 Keywords: |
---------------------------------+------------------------------------------
 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.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/2722>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:59 UTC