1 // (C) Copyright John Maddock 2001 - 2003.
2 // (C) Copyright Darin Adler 2001 - 2002.
3 // (C) Copyright Bill Kempf 2002.
4 // Use, modification and distribution are subject to the
5 // Boost Software License, Version 1.0. (See accompanying file
6 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
8 // See http://www.boost.org for most recent version.
10 // Mac OS specific config options:
12 #define BOOST_PLATFORM "Mac OS"
14 #if __MACH__ && !defined(_MSL_USING_MSL_C)
16 // Using the Mac OS X system BSD-style C library.
18 # define BOOST_NO_CTYPE_FUNCTIONS
19 # define BOOST_NO_CWCHAR
20 # ifndef BOOST_HAS_UNISTD_H
21 # define BOOST_HAS_UNISTD_H
24 # ifndef TARGET_CARBON
25 # include <boost/config/posix_features.hpp>
27 # ifndef BOOST_HAS_STDINT_H
28 # define BOOST_HAS_STDINT_H
32 // BSD runtime has pthreads, sigaction, sched_yield and gettimeofday,
33 // of these only pthreads are advertised in <unistd.h>, so set the
34 // other options explicitly:
36 # define BOOST_HAS_SCHED_YIELD
37 # define BOOST_HAS_GETTIMEOFDAY
38 # define BOOST_HAS_SIGACTION
40 # if (__GNUC__ < 3) && !defined( __APPLE_CC__)
42 // GCC strange "ignore std" mode works better if you pretend everything
43 // is in the std namespace, for the most part.
45 # define BOOST_NO_STDC_NAMESPACE
50 // Using the MSL C library.
52 // We will eventually support threads in non-Carbon builds, but we do
53 // not support this yet.
56 # define BOOST_HAS_MPTASKS
58 // The MP task implementation of Boost Threads aims to replace MP-unsafe
59 // parts of the MSL, so we turn on threads unconditionally.
60 # define BOOST_HAS_THREADS
62 // The remote call manager depends on this.
63 # define BOOST_BIND_ENABLE_PASCAL