Blame view

3rdparty/boost_1_81_0/boost/align/aligned_alloc.hpp 1.5 KB
63e88f80   Hu Chunming   提交三方库
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
  /*
  Copyright 2014-2015 Glen Joseph Fernandes
  (glenjofe@gmail.com)
  
  Distributed under the Boost Software License, Version 1.0.
  (http://www.boost.org/LICENSE_1_0.txt)
  */
  #ifndef BOOST_ALIGN_ALIGNED_ALLOC_HPP
  #define BOOST_ALIGN_ALIGNED_ALLOC_HPP
  
  #include <boost/config.hpp>
  
  #if defined(BOOST_HAS_UNISTD_H)
  #include <unistd.h>
  #endif
  
  #if defined(__APPLE__) || defined(__APPLE_CC__) || defined(macintosh)
  #include <AvailabilityMacros.h>
  #endif
  
  #if defined(BOOST_ALIGN_USE_ALIGN)
  #include <boost/align/detail/aligned_alloc.hpp>
  #elif defined(BOOST_ALIGN_USE_NEW)
  #include <boost/align/detail/aligned_alloc_new.hpp>
  #elif defined(_MSC_VER) && !defined(UNDER_CE)
  #include <boost/align/detail/aligned_alloc_msvc.hpp>
  #elif defined(__MINGW32__) && (__MSVCRT_VERSION__ >= 0x0700)
  #include <boost/align/detail/aligned_alloc_msvc.hpp>
  #elif defined(__MINGW32__)
  #include <boost/align/detail/aligned_alloc_mingw.hpp>
  #elif MAC_OS_X_VERSION_MIN_REQUIRED >= 1090
  #include <boost/align/detail/aligned_alloc_posix.hpp>
  #elif MAC_OS_X_VERSION_MIN_REQUIRED >= 1060
  #include <boost/align/detail/aligned_alloc_macos.hpp>
  #elif defined(__ANDROID__)
  #include <boost/align/detail/aligned_alloc_android.hpp>
  #elif defined(__SunOS_5_11) || defined(__SunOS_5_12)
  #include <boost/align/detail/aligned_alloc_posix.hpp>
  #elif defined(sun) || defined(__sun)
  #include <boost/align/detail/aligned_alloc_sunos.hpp>
  #elif defined(_POSIX_VERSION)
  #include <boost/align/detail/aligned_alloc_posix.hpp>
  #else
  #include <boost/align/detail/aligned_alloc.hpp>
  #endif
  
  #endif