1 // (C) Copyright Boost.org 2001. Permission to copy, use, modify, sell and
2 // distribute this software is granted provided this copyright notice appears
3 // in all copies. This software is provided "as is" without express or implied
4 // warranty, and with no claim as to its suitability for any purpose.
6 // See http://www.boost.org for most recent version.
8 // Mac OS specific config options:
10 #define BOOST_PLATFORM "Mac OS"
12 #if __MACH__ && !defined(_MSL_USING_MSL_C)
14 // Using the Mac OS X system BSD-style C library.
16 # define BOOST_NO_CTYPE_FUNCTIONS
17 # define BOOST_NO_CWCHAR
18 # ifndef BOOST_HAS_UNISTD_H
19 # define BOOST_HAS_UNISTD_H
22 # ifndef TARGET_CARBON
23 # include <boost/config/posix_features.hpp>
25 # ifndef BOOST_HAS_STDINT_H
26 # define BOOST_HAS_STDINT_H
30 // BSD runtime has pthreads, sigaction, sched_yield and gettimeofday,
31 // of these only pthreads are advertised in <unistd.h>, so set the
32 // other options explicitly:
34 # define BOOST_HAS_SCHED_YIELD
35 # define BOOST_HAS_GETTIMEOFDAY
36 # define BOOST_HAS_SIGACTION
40 // GCC strange "ignore std" mode works better if you pretend everything
41 // is in the std namespace, for the most part.
43 # define BOOST_NO_STDC_NAMESPACE
48 // Using the MSL C library.
50 // We will eventually support threads in non-Carbon builds, but we do
51 // not support this yet.
54 # define BOOST_HAS_MPTASKS
56 // The MP task implementation of Boost Threads aims to replace MP-unsafe
57 // parts of the MSL, so we turn on threads unconditionally.
58 # define BOOST_HAS_THREADS
60 // The remote call manager depends on this.
61 # define BOOST_BIND_ENABLE_PASCAL