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