From e8fc15908398c86dbcfb080ad8a3a53bda9b3e8f Mon Sep 17 00:00:00 2001 From: EZ4Stephen Date: Wed, 19 Nov 2025 17:53:40 +0400 Subject: [PATCH] Revert the edit to abstract_ui.h I'll probably have to make a different branch and all. I suppose changes to this file can wait for another day. --- libs/pbd/pbd/abstract_ui.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/libs/pbd/pbd/abstract_ui.h b/libs/pbd/pbd/abstract_ui.h index dddcff0627..de119fc238 100644 --- a/libs/pbd/pbd/abstract_ui.h +++ b/libs/pbd/pbd/abstract_ui.h @@ -73,19 +73,20 @@ protected: }; typedef typename RequestBuffer::rw_vector RequestBufferVector; +#if defined(COMPILER_MINGW) && defined(PTW32_VERSION) struct pthread_cmp { - bool operator() (const pthread_t& a, const pthread_t& b) const noexcept + bool operator() (const ptw32_handle_t& thread1, const ptw32_handle_t& thread2) { -#ifdef PTW32_VERSION - return a.p < b.p; -#else - return a < b; -#endif + return thread1.p < thread2.p; } }; typedef typename std::map::iterator RequestBufferMapIterator; typedef std::map RequestBufferMap; +#else + typedef typename std::map::iterator RequestBufferMapIterator; + typedef std::map RequestBufferMap; +#endif RequestBufferMap request_buffers;