Chris@16: // (C) Copyright John Maddock 2001 - 2003. Chris@16: // (C) Copyright Darin Adler 2001 - 2002. Chris@16: // (C) Copyright Bill Kempf 2002. Chris@16: // Use, modification and distribution are subject to the Chris@16: // Boost Software License, Version 1.0. (See accompanying file Chris@16: // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) Chris@16: Chris@16: // See http://www.boost.org for most recent version. Chris@16: Chris@16: // Mac OS specific config options: Chris@16: Chris@16: #define BOOST_PLATFORM "Mac OS" Chris@16: Chris@16: #if __MACH__ && !defined(_MSL_USING_MSL_C) Chris@16: Chris@16: // Using the Mac OS X system BSD-style C library. Chris@16: Chris@16: # ifndef BOOST_HAS_UNISTD_H Chris@16: # define BOOST_HAS_UNISTD_H Chris@16: # endif Chris@16: // Chris@16: // Begin by including our boilerplate code for POSIX Chris@16: // feature detection, this is safe even when using Chris@16: // the MSL as Metrowerks supply their own Chris@16: // to replace the platform-native BSD one. G++ users Chris@16: // should also always be able to do this on MaxOS X. Chris@16: // Chris@16: # include Chris@16: # ifndef BOOST_HAS_STDINT_H Chris@16: # define BOOST_HAS_STDINT_H Chris@16: # endif Chris@16: Chris@16: // Chris@16: // BSD runtime has pthreads, sigaction, sched_yield and gettimeofday, Chris@16: // of these only pthreads are advertised in , so set the Chris@16: // other options explicitly: Chris@16: // Chris@16: # define BOOST_HAS_SCHED_YIELD Chris@16: # define BOOST_HAS_GETTIMEOFDAY Chris@16: # define BOOST_HAS_SIGACTION Chris@16: Chris@16: # if (__GNUC__ < 3) && !defined( __APPLE_CC__) Chris@16: Chris@16: // GCC strange "ignore std" mode works better if you pretend everything Chris@16: // is in the std namespace, for the most part. Chris@16: Chris@16: # define BOOST_NO_STDC_NAMESPACE Chris@16: # endif Chris@16: Chris@16: # if (__GNUC__ == 4) Chris@16: Chris@16: // Both gcc and intel require these. Chris@16: # define BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE Chris@16: # define BOOST_HAS_NANOSLEEP Chris@16: Chris@16: # endif Chris@16: Chris@16: #else Chris@16: Chris@16: // Using the MSL C library. Chris@16: Chris@16: // We will eventually support threads in non-Carbon builds, but we do Chris@16: // not support this yet. Chris@16: # if ( defined(TARGET_API_MAC_CARBON) && TARGET_API_MAC_CARBON ) || ( defined(TARGET_CARBON) && TARGET_CARBON ) Chris@16: Chris@16: # if !defined(BOOST_HAS_PTHREADS) Chris@16: // MPTasks support is deprecated/removed from Boost: Chris@16: //# define BOOST_HAS_MPTASKS Chris@16: # elif ( __dest_os == __mac_os_x ) Chris@16: // We are doing a Carbon/Mach-O/MSL build which has pthreads, but only the Chris@16: // gettimeofday and no posix. Chris@16: # define BOOST_HAS_GETTIMEOFDAY Chris@16: # endif Chris@16: Chris@16: #ifdef BOOST_HAS_PTHREADS Chris@16: # define BOOST_HAS_THREADS Chris@16: #endif Chris@16: Chris@16: // The remote call manager depends on this. Chris@16: # define BOOST_BIND_ENABLE_PASCAL Chris@16: Chris@16: # endif Chris@16: Chris@16: #endif Chris@16: Chris@16: Chris@16: