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