Tentative fixes for gcc and MWCW thread API selection on Mac OS X

[SVN r27215]
This commit is contained in:
John Maddock
2005-02-07 11:34:21 +00:00
parent d766b152fd
commit acba71531a

View File

@ -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.