--- Source/WTF/wtf/StdLibExtras.h.orig 2016-04-10 10:48:36 +++ Source/WTF/wtf/StdLibExtras.h 2024-12-16 13:51:17 @@ -320,78 +320,7 @@ }; } #endif - -// This adds various C++14 features for versions of the STL that may not yet have them. -namespace std { -// MSVC 2013 supports std::make_unique already. -#if !defined(_MSC_VER) || _MSC_VER < 1800 -template struct _Unique_if { - typedef unique_ptr _Single_object; -}; -template struct _Unique_if { - typedef unique_ptr _Unknown_bound; -}; - -template struct _Unique_if { - typedef void _Known_bound; -}; - -template inline typename _Unique_if::_Single_object -make_unique(Args&&... args) -{ - return unique_ptr(new T(std::forward(args)...)); -} - -template inline typename _Unique_if::_Unknown_bound -make_unique(size_t n) -{ - typedef typename remove_extent::type U; - return unique_ptr(new U[n]()); -} - -template typename _Unique_if::_Known_bound -make_unique(Args&&...) = delete; -#endif - -// Compile-time integer sequences -// http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3658.html -// (Note that we only implement index_sequence, and not the more generic integer_sequence). -template struct index_sequence { - static size_t size() { return sizeof...(indexes); } -}; - -template struct make_index_sequence_helper; - -template struct make_index_sequence_helper<0, indexes...> { - typedef std::index_sequence type; -}; - -template struct make_index_sequence_helper { - typedef typename make_index_sequence_helper::type type; -}; - -template struct make_index_sequence : public make_index_sequence_helper::type { }; - -#if COMPILER_SUPPORTS(CXX_USER_LITERALS) -// These literals are available in C++14, so once we require C++14 compilers we can get rid of them here. -// (User-literals need to have a leading underscore so we add it here - the "real" literals don't have underscores). -namespace literals { -namespace chrono_literals { - CONSTEXPR inline chrono::seconds operator"" _s(unsigned long long s) - { - return chrono::seconds(static_cast(s)); - } - - CONSTEXPR chrono::milliseconds operator"" _ms(unsigned long long ms) - { - return chrono::milliseconds(static_cast(ms)); - } -} -} -#endif -} - using WTF::KB; using WTF::MB; using WTF::insertIntoBoundedVector; --- Source/WTF/wtf/MathExtras.h.orig 2016-04-10 10:48:36 +++ Source/WTF/wtf/MathExtras.h 2024-12-16 18:39:15 @@ -73,15 +73,6 @@ const double sqrtOfTwoDouble = M_SQRT2; #endif -#if OS(DARWIN) - -// Work around a bug in the Mac OS X libc where ceil(-0.1) return +0. -inline double wtf_ceil(double x) { return copysign(ceil(x), x); } - -#define ceil(x) wtf_ceil(x) - -#endif - #if OS(SOLARIS) namespace std { --- Source/WebCore/platform/LayoutUnit.h.orig 2016-04-10 10:48:37 +++ Source/WebCore/platform/LayoutUnit.h 2024-12-16 18:49:49 @@ -210,11 +210,7 @@ returnValue.setRawValue(::abs(m_value)); return returnValue; } -#if OS(DARWIN) - int wtf_ceil() const -#else int ceil() const -#endif { #if ENABLE(SUBPIXEL_LAYOUT) #if ENABLE(SATURATED_LAYOUT_ARITHMETIC) --- Source/ThirdParty/ANGLE/src/compiler/preprocessor/MacroExpander.h.orig 2016-04-10 10:48:36 +++ Source/ThirdParty/ANGLE/src/compiler/preprocessor/MacroExpander.h 2024-12-16 18:40:49 @@ -66,7 +66,7 @@ MacroSet* mMacroSet; Diagnostics* mDiagnostics; - std::auto_ptr mReserveToken; + std::unique_ptr mReserveToken; std::vector mContextStack; };