BVB Source Codes

mars Show macos.hpp Source code

Return Download mars: download macos.hpp Source code - Download mars Source code - Type:.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. #  ifndef BOOST_HAS_UNISTD_H
  19. #    define BOOST_HAS_UNISTD_H
  20. #  endif
  21. //
  22. // Begin by including our boilerplate code for POSIX
  23. // feature detection, this is safe even when using
  24. // the MSL as Metrowerks supply their own <unistd.h>
  25. // to replace the platform-native BSD one. G++ users
  26. // should also always be able to do this on MaxOS X.
  27. //
  28. #  include <boost/config/posix_features.hpp>
  29. #  ifndef BOOST_HAS_STDINT_H
  30. #     define BOOST_HAS_STDINT_H
  31. #  endif
  32.  
  33. //
  34. // BSD runtime has pthreads, sigaction, sched_yield and gettimeofday,
  35. // of these only pthreads are advertised in <unistd.h>, so set the
  36. // other options explicitly:
  37. //
  38. #  define BOOST_HAS_SCHED_YIELD
  39. #  define BOOST_HAS_GETTIMEOFDAY
  40. #  define BOOST_HAS_SIGACTION
  41.  
  42. #  if (__GNUC__ < 3) && !defined( __APPLE_CC__)
  43.  
  44. // GCC strange "ignore std" mode works better if you pretend everything
  45. // is in the std namespace, for the most part.
  46.  
  47. #    define BOOST_NO_STDC_NAMESPACE
  48. #  endif
  49.  
  50. #  if (__GNUC__ >= 4)
  51.  
  52. // Both gcc and intel require these.  
  53. #    define BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
  54. #    define BOOST_HAS_NANOSLEEP
  55.  
  56. #  endif
  57.  
  58. #else
  59.  
  60. // Using the MSL C library.
  61.  
  62. // We will eventually support threads in non-Carbon builds, but we do
  63. // not support this yet.
  64. #  if ( defined(TARGET_API_MAC_CARBON) && TARGET_API_MAC_CARBON ) || ( defined(TARGET_CARBON) && TARGET_CARBON )
  65.  
  66. #  if !defined(BOOST_HAS_PTHREADS)
  67. // MPTasks support is deprecated/removed from Boost:
  68. //#    define BOOST_HAS_MPTASKS
  69. #  elif ( __dest_os == __mac_os_x )
  70. // We are doing a Carbon/Mach-O/MSL build which has pthreads, but only the
  71. // gettimeofday and no posix.
  72. #  define BOOST_HAS_GETTIMEOFDAY
  73. #  endif
  74.  
  75. #ifdef BOOST_HAS_PTHREADS
  76. #  define BOOST_HAS_THREADS
  77. #endif
  78.  
  79. // The remote call manager depends on this.
  80. #    define BOOST_BIND_ENABLE_PASCAL
  81.  
  82. #  endif
  83.  
  84. #endif
  85.  
  86.  
  87.  
  88.  
downloadmacos.hpp Source code - Download mars Source code
Related Source Codes/Software:
Hero - Elegant transition library for iOS & tvOS 2017-06-09
deep-photo-styletransfer - Code and data for paper "Deep Photo Style Transfer... 2017-06-09
mastodon - A GNU Social-compatible microblogging server ... 2017-06-09
plyr - A simple HTML5, YouTube and Vimeo player ... 2017-06-08
prepack - Prepack is a partial evaluator for JavaScript. Pre... 2017-06-08
Public-APIs - 2017-06-09
lottie-ios - An iOS library to natively render After Effects ve... 2017-06-09
Awesome-Hacking - A collection of various awesome lists for hackers,... 2017-06-09
algorithms - Minimal examples of data structures and algorithms... 2017-06-10
lectures - Oxford Deep NLP 2017 course 2017-06-10
CRYENGINE - CRYENGINE is a powerful real-time game development... 2017-06-11
postal - 2017-06-11
reactide - Reactide is the first dedicated IDE for React web ... 2017-06-11
rkt - rkt is a pod-native container engine for Linux. It... 2017-06-11
uWebSockets - Tiny WebSockets https://for... 2017-06-11
realworld - TodoMVC for the RealWorld - Exemplary fullstack Me... 2017-06-11
goreplay - GoReplay is an open-source tool for capturing and ... 2017-06-10
pyenv - Simple Python version management 2017-06-10
redux-saga - An alternative side effect model for Redux apps ... 2017-06-10
angular-starter - 2017-06-10

 Back to top