2001-09-18 11:13:39 +00:00
|
|
|
// (C) Copyright Boost.org 2001. Permission to copy, use, modify, sell and
|
|
|
|
|
// distribute this software is granted provided this copyright notice appears
|
|
|
|
|
// in all copies. This software is provided "as is" without express or implied
|
|
|
|
|
// warranty, and with no claim as to its suitability for any purpose.
|
|
|
|
|
|
|
|
|
|
// See http://www.boost.org for most recent version.
|
|
|
|
|
|
|
|
|
|
// Mac OS specific config options:
|
|
|
|
|
|
|
|
|
|
#define BOOST_PLATFORM "Mac OS"
|
|
|
|
|
|
2002-10-23 23:32:38 +00:00
|
|
|
#if __MACH__ && !defined(_MSL_USING_MSL_C)
|
|
|
|
|
|
|
|
|
|
// Using the Mac OS X system BSD-style C library.
|
2001-09-25 06:48:48 +00:00
|
|
|
|
2001-09-24 19:20:53 +00:00
|
|
|
# define BOOST_NO_CTYPE_FUNCTIONS
|
2001-09-18 11:13:39 +00:00
|
|
|
# define BOOST_NO_CWCHAR
|
2001-09-24 19:20:53 +00:00
|
|
|
# ifndef BOOST_HAS_UNISTD_H
|
|
|
|
|
# define BOOST_HAS_UNISTD_H
|
|
|
|
|
# endif
|
2001-10-26 11:58:23 +00:00
|
|
|
// boilerplate code:
|
|
|
|
|
# include <boost/config/posix_features.hpp>
|
2001-09-18 11:13:39 +00:00
|
|
|
# ifndef BOOST_HAS_STDINT_H
|
|
|
|
|
# define BOOST_HAS_STDINT_H
|
|
|
|
|
# endif
|
2001-09-25 06:48:48 +00:00
|
|
|
|
2001-10-21 11:46:46 +00:00
|
|
|
//
|
|
|
|
|
// BSD runtime has pthreads, sched_yield and gettimeofday,
|
|
|
|
|
// of these only pthreads are advertised in <unistd.h>, so set the
|
|
|
|
|
// other options explicitly:
|
|
|
|
|
//
|
|
|
|
|
# define BOOST_HAS_SCHED_YIELD
|
|
|
|
|
# define BOOST_HAS_GETTIMEOFDAY
|
|
|
|
|
|
2001-09-25 06:48:48 +00:00
|
|
|
# ifndef __APPLE_CC__
|
|
|
|
|
|
|
|
|
|
// GCC strange "ignore std" mode works better if you pretend everything
|
|
|
|
|
// is in the std namespace, for the most part.
|
|
|
|
|
|
|
|
|
|
# define BOOST_NO_STDC_NAMESPACE
|
|
|
|
|
# endif
|
|
|
|
|
|
2002-01-24 16:32:23 +00:00
|
|
|
#else
|
|
|
|
|
|
2002-10-23 23:32:38 +00:00
|
|
|
// Using the MSL C library.
|
|
|
|
|
|
2002-01-24 16:32:23 +00:00
|
|
|
// We will eventually support threads in non-Carbon builds, but we do
|
|
|
|
|
// not support this yet.
|
|
|
|
|
# if TARGET_CARBON
|
|
|
|
|
|
|
|
|
|
# define BOOST_HAS_MPTASKS
|
|
|
|
|
|
|
|
|
|
// The MP task implementation of Boost Threads aims to replace MP-unsafe
|
|
|
|
|
// parts of the MSL, so we turn on threads unconditionally.
|
|
|
|
|
# define BOOST_HAS_THREADS
|
2001-10-21 11:46:46 +00:00
|
|
|
|
2002-01-24 16:32:23 +00:00
|
|
|
// The remote call manager depends on this.
|
|
|
|
|
# define BOOST_BIND_ENABLE_PASCAL
|
|
|
|
|
|
|
|
|
|
# endif
|
|
|
|
|
|
|
|
|
|
#endif
|