Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:30:07

0001 //  (C) Copyright John Maddock 2001 - 2003. 
0002 //  (C) Copyright Darin Adler 2001 - 2002. 
0003 //  (C) Copyright Bill Kempf 2002. 
0004 //  Use, modification and distribution are subject to the 
0005 //  Boost Software License, Version 1.0. (See accompanying file 
0006 //  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0007 
0008 //  See http://www.boost.org for most recent version.
0009 
0010 //  Mac OS specific config options:
0011 
0012 #define BOOST_PLATFORM "Mac OS"
0013 
0014 #if __MACH__ && !defined(_MSL_USING_MSL_C)
0015 
0016 // Using the Mac OS X system BSD-style C library.
0017 
0018 #  ifndef BOOST_HAS_UNISTD_H
0019 #    define BOOST_HAS_UNISTD_H
0020 #  endif
0021 //
0022 // Begin by including our boilerplate code for POSIX
0023 // feature detection, this is safe even when using
0024 // the MSL as Metrowerks supply their own <unistd.h>
0025 // to replace the platform-native BSD one. G++ users
0026 // should also always be able to do this on MaxOS X.
0027 //
0028 #  include <boost/config/detail/posix_features.hpp>
0029 #  ifndef BOOST_HAS_STDINT_H
0030 #     define BOOST_HAS_STDINT_H
0031 #  endif
0032 
0033 //
0034 // BSD runtime has pthreads, sigaction, sched_yield and gettimeofday,
0035 // of these only pthreads are advertised in <unistd.h>, so set the 
0036 // other options explicitly:
0037 //
0038 #  define BOOST_HAS_SCHED_YIELD
0039 #  define BOOST_HAS_GETTIMEOFDAY
0040 #  define BOOST_HAS_SIGACTION
0041 
0042 #  if (__GNUC__ < 3) && !defined( __APPLE_CC__)
0043 
0044 // GCC strange "ignore std" mode works better if you pretend everything
0045 // is in the std namespace, for the most part.
0046 
0047 #    define BOOST_NO_STDC_NAMESPACE
0048 #  endif
0049 
0050 #  if (__GNUC__ >= 4)
0051 
0052 // Both gcc and intel require these.  
0053 #    define BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
0054 #    define BOOST_HAS_NANOSLEEP
0055 
0056 #  endif
0057 
0058 #else
0059 
0060 // Using the MSL C library.
0061 
0062 // We will eventually support threads in non-Carbon builds, but we do
0063 // not support this yet.
0064 #  if ( defined(TARGET_API_MAC_CARBON) && TARGET_API_MAC_CARBON ) || ( defined(TARGET_CARBON) && TARGET_CARBON )
0065 
0066 #  if !defined(BOOST_HAS_PTHREADS)
0067 // MPTasks support is deprecated/removed from Boost:
0068 //#    define BOOST_HAS_MPTASKS
0069 #  elif ( __dest_os == __mac_os_x )
0070 // We are doing a Carbon/Mach-O/MSL build which has pthreads, but only the
0071 // gettimeofday and no posix.
0072 #  define BOOST_HAS_GETTIMEOFDAY
0073 #  endif
0074 
0075 #ifdef BOOST_HAS_PTHREADS
0076 #  define BOOST_HAS_THREADS
0077 #endif
0078 
0079 // The remote call manager depends on this.
0080 #    define BOOST_BIND_ENABLE_PASCAL
0081 
0082 #  endif
0083 
0084 #endif
0085 
0086 
0087