]>
Commit | Line | Data |
---|---|---|
7c673cae | 1 | /* |
b32b8144 FG |
2 | Copyright 2014-2015 Glen Joseph Fernandes |
3 | (glenjofe@gmail.com) | |
7c673cae | 4 | |
b32b8144 FG |
5 | Distributed under the Boost Software License, Version 1.0. |
6 | (http://www.boost.org/LICENSE_1_0.txt) | |
7c673cae FG |
7 | */ |
8 | #ifndef BOOST_ALIGN_ALIGNED_ALLOC_HPP | |
9 | #define BOOST_ALIGN_ALIGNED_ALLOC_HPP | |
10 | ||
11 | #include <boost/config.hpp> | |
12 | ||
13 | #if defined(BOOST_HAS_UNISTD_H) | |
14 | #include <unistd.h> | |
15 | #endif | |
16 | ||
17 | #if defined(__APPLE__) || defined(__APPLE_CC__) || defined(macintosh) | |
18 | #include <AvailabilityMacros.h> | |
19 | #endif | |
20 | ||
21 | #if defined(BOOST_ALIGN_USE_ALLOCATE) | |
22 | #include <boost/align/detail/aligned_alloc.hpp> | |
23 | #elif defined(_MSC_VER) && !defined(UNDER_CE) | |
24 | #include <boost/align/detail/aligned_alloc_msvc.hpp> | |
25 | #elif defined(__MINGW32__) && (__MSVCRT_VERSION__ >= 0x0700) | |
26 | #include <boost/align/detail/aligned_alloc_msvc.hpp> | |
f67539c2 TL |
27 | #elif defined(__MINGW32__) |
28 | #include <boost/align/detail/aligned_alloc_mingw.hpp> | |
7c673cae FG |
29 | #elif MAC_OS_X_VERSION_MIN_REQUIRED >= 1090 |
30 | #include <boost/align/detail/aligned_alloc_posix.hpp> | |
31 | #elif MAC_OS_X_VERSION_MIN_REQUIRED >= 1060 | |
32 | #include <boost/align/detail/aligned_alloc_macos.hpp> | |
33 | #elif defined(__ANDROID__) | |
34 | #include <boost/align/detail/aligned_alloc_android.hpp> | |
35 | #elif defined(__SunOS_5_11) || defined(__SunOS_5_12) | |
36 | #include <boost/align/detail/aligned_alloc_posix.hpp> | |
37 | #elif defined(sun) || defined(__sun) | |
38 | #include <boost/align/detail/aligned_alloc_sunos.hpp> | |
39 | #elif (_POSIX_C_SOURCE >= 200112L) || (_XOPEN_SOURCE >= 600) | |
40 | #include <boost/align/detail/aligned_alloc_posix.hpp> | |
41 | #else | |
42 | #include <boost/align/detail/aligned_alloc.hpp> | |
43 | #endif | |
44 | ||
45 | #endif |