]> git.lyx.org Git - lyx.git/blob - boost/boost/config/platform/macos.hpp
update boost to pre-1.30.0
[lyx.git] / boost / boost / config / platform / macos.hpp
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.
5
6 //  See http://www.boost.org for most recent version.
7
8 //  Mac OS specific config options:
9
10 #define BOOST_PLATFORM "Mac OS"
11
12 #if __MACH__ && !defined(_MSL_USING_MSL_C)
13
14 // Using the Mac OS X system BSD-style C library.
15
16 #  define BOOST_NO_CTYPE_FUNCTIONS
17 #  define BOOST_NO_CWCHAR
18 #  ifndef BOOST_HAS_UNISTD_H
19 #    define BOOST_HAS_UNISTD_H
20 #  endif
21 // boilerplate code:
22 #  ifndef TARGET_CARBON
23 #     include <boost/config/posix_features.hpp>
24 #  endif
25 #  ifndef BOOST_HAS_STDINT_H
26 #     define BOOST_HAS_STDINT_H
27 #  endif
28
29 //
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:
33 //
34 #  define BOOST_HAS_SCHED_YIELD
35 #  define BOOST_HAS_GETTIMEOFDAY
36 #  define BOOST_HAS_SIGACTION
37
38 #  ifndef __APPLE_CC__
39
40 // GCC strange "ignore std" mode works better if you pretend everything
41 // is in the std namespace, for the most part.
42
43 #    define BOOST_NO_STDC_NAMESPACE
44 #  endif
45
46 #else
47
48 // Using the MSL C library.
49
50 // We will eventually support threads in non-Carbon builds, but we do
51 // not support this yet.
52 #  if TARGET_CARBON
53
54 #    define BOOST_HAS_MPTASKS
55
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
59
60 // The remote call manager depends on this.
61 #    define BOOST_BIND_ENABLE_PASCAL
62
63 #  endif
64
65 #endif
66