forked from boostorg/config
Tentative fixes for gcc and MWCW thread API selection on Mac OS X
[SVN r27215]
This commit is contained in:
@ -18,10 +18,14 @@
|
|||||||
# ifndef BOOST_HAS_UNISTD_H
|
# ifndef BOOST_HAS_UNISTD_H
|
||||||
# define BOOST_HAS_UNISTD_H
|
# define BOOST_HAS_UNISTD_H
|
||||||
# endif
|
# endif
|
||||||
// boilerplate code:
|
//
|
||||||
# ifndef TARGET_CARBON
|
// Begin by including our boilerplate code for POSIX
|
||||||
# include <boost/config/posix_features.hpp>
|
// feature detection, this is safe even when using
|
||||||
# endif
|
// the MSL as Metrowerks supply their own <unistd.h>
|
||||||
|
// to replace the platform-native BSD one. G++ users
|
||||||
|
// should also always be able to do this on MaxOS X.
|
||||||
|
//
|
||||||
|
# include <boost/config/posix_features.hpp>
|
||||||
# ifndef BOOST_HAS_STDINT_H
|
# ifndef BOOST_HAS_STDINT_H
|
||||||
# define BOOST_HAS_STDINT_H
|
# define BOOST_HAS_STDINT_H
|
||||||
# endif
|
# endif
|
||||||
@ -51,7 +55,9 @@
|
|||||||
// not support this yet.
|
// not support this yet.
|
||||||
# if TARGET_CARBON
|
# if TARGET_CARBON
|
||||||
|
|
||||||
|
# if !defined(BOOST_HAS_PTHREADS)
|
||||||
# define BOOST_HAS_MPTASKS
|
# define BOOST_HAS_MPTASKS
|
||||||
|
# endif
|
||||||
|
|
||||||
// The MP task implementation of Boost Threads aims to replace MP-unsafe
|
// The MP task implementation of Boost Threads aims to replace MP-unsafe
|
||||||
// parts of the MSL, so we turn on threads unconditionally.
|
// parts of the MSL, so we turn on threads unconditionally.
|
||||||
|
Reference in New Issue
Block a user