BVB Source Codes

mars Show linux.hpp Source code

Return Download mars: download linux.hpp Source code - Download mars Source code - Type:.hpp
  1. //  (C) Copyright John Maddock 2001 - 2003.
  2. //  (C) Copyright Jens Maurer 2001 - 2003.
  3. //  Use, modification and distribution are subject to the
  4. //  Boost Software License, Version 1.0. (See accompanying file
  5. //  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  6.  
  7. //  See http://www.boost.org for most recent version.
  8.  
  9. //  linux specific config options:
  10.  
  11. #define BOOST_PLATFORM "linux"
  12.  
  13. // make sure we have __GLIBC_PREREQ if available at all
  14. #ifdef __cplusplus
  15. #include <cstdlib>
  16. #else
  17. #include <stdlib.h>
  18. #endif
  19.  
  20. //
  21. // <stdint.h> added to glibc 2.1.1
  22. // We can only test for 2.1 though:
  23. //
  24. #if defined(__GLIBC__) && ((__GLIBC__ > 2) || ((__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 1)))
  25.    // <stdint.h> defines int64_t unconditionally, but <sys/types.h> defines
  26.    // int64_t only if __GNUC__.  Thus, assume a fully usable <stdint.h>
  27.    // only when using GCC.
  28. #  if defined __GNUC__
  29. #    define BOOST_HAS_STDINT_H
  30. #  endif
  31. #endif
  32.  
  33. #if defined(__LIBCOMO__)
  34.    //
  35.    // como on linux doesn't have std:: c functions:
  36.    // NOTE: versions of libcomo prior to beta28 have octal version numbering,
  37.    // e.g. version 25 is 21 (dec)
  38.    //
  39. #  if __LIBCOMO_VERSION__ <= 20
  40. #    define BOOST_NO_STDC_NAMESPACE
  41. #  endif
  42.  
  43. #  if __LIBCOMO_VERSION__ <= 21
  44. #    define BOOST_NO_SWPRINTF
  45. #  endif
  46.  
  47. #endif
  48.  
  49. //
  50. // If glibc is past version 2 then we definitely have
  51. // gettimeofday, earlier versions may or may not have it:
  52. //
  53. #if defined(__GLIBC__) && (__GLIBC__ >= 2)
  54. #  define BOOST_HAS_GETTIMEOFDAY
  55. #endif
  56.  
  57. #ifdef __USE_POSIX199309
  58. #  define BOOST_HAS_NANOSLEEP
  59. #endif
  60.  
  61. #if defined(__GLIBC__) && defined(__GLIBC_PREREQ)
  62. // __GLIBC_PREREQ is available since 2.1.2
  63.  
  64.    // swprintf is available since glibc 2.2.0
  65. #  if !__GLIBC_PREREQ(2,2) || (!defined(__USE_ISOC99) && !defined(__USE_UNIX98))
  66. #    define BOOST_NO_SWPRINTF
  67. #  endif
  68. #else
  69. #  define BOOST_NO_SWPRINTF
  70. #endif
  71.  
  72. // boilerplate code:
  73. #define BOOST_HAS_UNISTD_H
  74. #include <boost/config/posix_features.hpp>
  75. #ifdef __USE_GNU
  76. #define BOOST_HAS_PTHREAD_YIELD
  77. #endif
  78.  
  79. #ifndef __GNUC__
  80. //
  81. // if the compiler is not gcc we still need to be able to parse
  82. // the GNU system headers, some of which (mainly <stdint.h>)
  83. // use GNU specific extensions:
  84. //
  85. #  ifndef __extension__
  86. #     define __extension__
  87. #  endif
  88. #  ifndef __const__
  89. #     define __const__ const
  90. #  endif
  91. #  ifndef __volatile__
  92. #     define __volatile__ volatile
  93. #  endif
  94. #  ifndef __signed__
  95. #     define __signed__ signed
  96. #  endif
  97. #  ifndef __typeof__
  98. #     define __typeof__ typeof
  99. #  endif
  100. #  ifndef __inline__
  101. #     define __inline__ inline
  102. #  endif
  103. #endif
  104.  
  105.  
  106.  
downloadlinux.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