Imported Upstream version 1.57.0
[platform/upstream/boost.git] / boost / align / aligned_alloc.hpp
1 /*
2  (c) 2014 Glen Joseph Fernandes
3  glenjofe at gmail dot 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(_MSC_VER)
23 #include <boost/align/detail/aligned_alloc_msvc.hpp>
24 #elif defined(__MINGW32__) && (__MSVCRT_VERSION__ >= 0x0700)
25 #include <boost/align/detail/aligned_alloc_msvc.hpp>
26 #elif MAC_OS_X_VERSION_MIN_REQUIRED >= 1090
27 #include <boost/align/detail/aligned_alloc_posix.hpp>
28 #elif MAC_OS_X_VERSION_MIN_REQUIRED >= 1060
29 #include <boost/align/detail/aligned_alloc_macos.hpp>
30 #elif defined(__ANDROID__)
31 #include <boost/align/detail/aligned_alloc_android.hpp>
32 #elif defined(__SunOS_5_11) || defined(__SunOS_5_12)
33 #include <boost/align/detail/aligned_alloc_posix.hpp>
34 #elif defined(sun) || defined(__sun)
35 #include <boost/align/detail/aligned_alloc_sunos.hpp>
36 #elif (_POSIX_C_SOURCE >= 200112L) || (_XOPEN_SOURCE >= 600)
37 #include <boost/align/detail/aligned_alloc_posix.hpp>
38 #else
39 #include <boost/align/detail/aligned_alloc.hpp>
40 #endif
41
42 #endif