Imported Upstream version 1.64.0
[platform/upstream/boost.git] / boost / align / aligned_alloc.hpp
1 /*
2 Copyright 2014-2015 Glen Joseph Fernandes
3 (glenjofe@gmail.com)
4
5 Distributed under the Boost Software License, Version 1.0.
6 (http://www.boost.org/LICENSE_1_0.txt)
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>
27 #elif MAC_OS_X_VERSION_MIN_REQUIRED >= 1090
28 #include <boost/align/detail/aligned_alloc_posix.hpp>
29 #elif MAC_OS_X_VERSION_MIN_REQUIRED >= 1060
30 #include <boost/align/detail/aligned_alloc_macos.hpp>
31 #elif defined(__ANDROID__)
32 #include <boost/align/detail/aligned_alloc_android.hpp>
33 #elif defined(__SunOS_5_11) || defined(__SunOS_5_12)
34 #include <boost/align/detail/aligned_alloc_posix.hpp>
35 #elif defined(sun) || defined(__sun)
36 #include <boost/align/detail/aligned_alloc_sunos.hpp>
37 #elif (_POSIX_C_SOURCE >= 200112L) || (_XOPEN_SOURCE >= 600)
38 #include <boost/align/detail/aligned_alloc_posix.hpp>
39 #else
40 #include <boost/align/detail/aligned_alloc.hpp>
41 #endif
42
43 #endif