]> git.lyx.org Git - lyx.git/blob - boost/boost/config/platform/macos.hpp
make boost compile without exceptions
[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__, we're using the BSD standard C library, not the MSL:
13 #if defined(__MACH__)
14
15 #  define BOOST_NO_CTYPE_FUNCTIONS
16 #  define BOOST_NO_CWCHAR
17 #  ifndef BOOST_HAS_UNISTD_H
18 #    define BOOST_HAS_UNISTD_H
19 #  endif
20 // boilerplate code:
21 #  include <boost/config/posix_features.hpp>
22 #  ifndef BOOST_HAS_STDINT_H
23 #     define BOOST_HAS_STDINT_H
24 #  endif
25
26 //
27 // BSD runtime has pthreads, sched_yield and gettimeofday,
28 // of these only pthreads are advertised in <unistd.h>, so set the 
29 // other options explicitly:
30 //
31 #  define BOOST_HAS_SCHED_YIELD
32 #  define BOOST_HAS_GETTIMEOFDAY
33
34 #  ifndef __APPLE_CC__
35
36 // GCC strange "ignore std" mode works better if you pretend everything
37 // is in the std namespace, for the most part.
38
39 #    define BOOST_NO_STDC_NAMESPACE
40 #  endif
41
42 #else
43
44 // We will eventually support threads in non-Carbon builds, but we do
45 // not support this yet.
46 #  if TARGET_CARBON
47
48 #    define BOOST_HAS_MPTASKS
49
50 // The MP task implementation of Boost Threads aims to replace MP-unsafe
51 // parts of the MSL, so we turn on threads unconditionally.
52 #    define BOOST_HAS_THREADS
53
54 // The remote call manager depends on this.
55 #    define BOOST_BIND_ENABLE_PASCAL
56
57 #  endif
58
59 #endif