diff --git a/MarathonRecomp/framework.h b/MarathonRecomp/framework.h index b6a4d2e23..96c993058 100644 --- a/MarathonRecomp/framework.h +++ b/MarathonRecomp/framework.h @@ -83,47 +83,3 @@ inline bool strcmpIgnoreCase(const char* a, const char* b) return true; } - -#ifndef __cpp_lib_atomic_ref -// Polyfill for std::atomic_ref -namespace std { -template -class atomic_ref -{ -public: - atomic_ref(value_type& ref) - { - ptr = reinterpret_cast*>(&ref); - } - - void store(value_type desired) - { - ptr->store(desired); - } - - bool compare_exchange_weak(value_type& expected, value_type desired) - { - return ptr->compare_exchange_weak(expected, desired); - } - - void wait(value_type old) - { - ptr->wait(old); - } - - void notify_one() - { - ptr->notify_one(); - } - - bool operator=(const value_type& rhs) - { - store(rhs); - } - -private: - std::atomic* ptr; -}; -} -#endif -