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