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_ALIGN) 22 #include <boost/align/detail/aligned_alloc.hpp> 23 #elif defined(BOOST_ALIGN_USE_NEW) 24 #include <boost/align/detail/aligned_alloc_new.hpp> 25 #elif defined(_MSC_VER) && !defined(UNDER_CE) 26 #include <boost/align/detail/aligned_alloc_msvc.hpp> 27 #elif defined(__MINGW32__) && (__MSVCRT_VERSION__ >= 0x0700) 28 #include <boost/align/detail/aligned_alloc_msvc.hpp> 29 #elif defined(__MINGW32__) 30 #include <boost/align/detail/aligned_alloc_mingw.hpp> 31 #elif MAC_OS_X_VERSION_MIN_REQUIRED >= 1090 32 #include <boost/align/detail/aligned_alloc_posix.hpp> 33 #elif MAC_OS_X_VERSION_MIN_REQUIRED >= 1060 34 #include <boost/align/detail/aligned_alloc_macos.hpp> 35 #elif defined(__ANDROID__) 36 #include <boost/align/detail/aligned_alloc_android.hpp> 37 #elif defined(__SunOS_5_11) || defined(__SunOS_5_12) 38 #include <boost/align/detail/aligned_alloc_posix.hpp> 39 #elif defined(sun) || defined(__sun) 40 #include <boost/align/detail/aligned_alloc_sunos.hpp> 41 #elif (_POSIX_C_SOURCE >= 200112L) || (_XOPEN_SOURCE >= 600) 42 #include <boost/align/detail/aligned_alloc_posix.hpp> 43 #else 44 #include <boost/align/detail/aligned_alloc.hpp> 45 #endif 46 47 #endif 48