diff --git a/include/boost/align/aligned_alloc.hpp b/include/boost/align/aligned_alloc.hpp index b5b6bd8..4e6e979 100644 --- a/include/boost/align/aligned_alloc.hpp +++ b/include/boost/align/aligned_alloc.hpp @@ -22,12 +22,8 @@ Distributed under the Boost Software License, Version 1.0. #include #elif defined(BOOST_ALIGN_USE_NEW) #include -#elif defined(_MSC_VER) && !defined(UNDER_CE) +#elif defined(_WIN32) && !defined(UNDER_CE) #include -#elif defined(__MINGW32__) && (__MSVCRT_VERSION__ >= 0x0700) -#include -#elif defined(__MINGW32__) -#include #elif MAC_OS_X_VERSION_MIN_REQUIRED >= 1090 #include #elif MAC_OS_X_VERSION_MIN_REQUIRED >= 1060 diff --git a/include/boost/align/detail/aligned_alloc_mingw.hpp b/include/boost/align/detail/aligned_alloc_mingw.hpp deleted file mode 100644 index 36be3d5..0000000 --- a/include/boost/align/detail/aligned_alloc_mingw.hpp +++ /dev/null @@ -1,34 +0,0 @@ -/* -Copyright 2020 Glen Joseph Fernandes -(glenjofe@gmail.com) - -Distributed under the Boost Software License, Version 1.0. -(http://www.boost.org/LICENSE_1_0.txt) -*/ -#ifndef BOOST_ALIGN_DETAIL_ALIGNED_ALLOC_MINGW_HPP -#define BOOST_ALIGN_DETAIL_ALIGNED_ALLOC_MINGW_HPP - -#include -#include -#include - -namespace boost { -namespace alignment { - -inline void* -aligned_alloc(std::size_t alignment, std::size_t size) BOOST_NOEXCEPT -{ - BOOST_ASSERT(detail::is_alignment(alignment)); - return ::__mingw_aligned_malloc(size, alignment); -} - -inline void -aligned_free(void* ptr) BOOST_NOEXCEPT -{ - ::__mingw_aligned_free(ptr); -} - -} /* alignment */ -} /* boost */ - -#endif