[Boost-bugs] [Boost C++ Libraries] #8331: Boost compatibility with Interix

Subject: [Boost-bugs] [Boost C++ Libraries] #8331: Boost compatibility with Interix
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-03-25 15:22:43


#8331: Boost compatibility with Interix
--------------------------------------------------+-------------------------
 Reporter: Andrin Foster <akf@…> | Owner: no-maintainer
     Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: preprocessor
  Version: Boost 1.52.0 | Severity: Problem
 Keywords: |
--------------------------------------------------+-------------------------
 When including the boost libraries on a Windows XP SP3 machine via Interix
 v3.5 using gcc 3.4.6 I would receive a number of pre-compiler errors
 complaining that boost threads were "unavailable on this platform". I
 resolved this issue by including the following code prior to the first
 inclusion of a boost library:
     #ifdef ARCH_Interix // an internal definition

     # include <boost/config.hpp>

     # define BOOST_HAS_THREADS

     # define BOOST_HAS_PTHREADS

     #endif
 There must be a more eloquent way of setting the thread definitions for
 Interix from within files such as /boost/thread/detail/platform.hpp,
 boost/thread/detail/config.hpp, or
 boost/config/select_platform_config.hpp. I'll leave that to the
 development teams prerogative.
 In any case, making the boost libraries comparable with Interix should not
 be overly complex. Please let me know if I can provide more information.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8331>
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:50:12 UTC