From c82163c5224a1724ef8843b3c29a31df00635bae Mon Sep 17 00:00:00 2001 From: pbdot <125748236+pbdot@users.noreply.github.com> Date: Fri, 10 Jan 2025 14:17:51 -0500 Subject: [PATCH] Fix thread size guard for non-msvc compilers --- libraries/thread/thread.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/thread/thread.h b/libraries/thread/thread.h index c6e8db6a6..a0e8744ff 100644 --- a/libraries/thread/thread.h +++ b/libraries/thread/thread.h @@ -881,7 +881,9 @@ void thread_signal_init( thread_signal_t* signal ) // Compile-time size check #pragma warning( push ) #pragma warning( disable: 4214 ) // nonstandard extension used: bit field types other than int +#endif struct x { char thread_signal_type_too_small : ( sizeof( thread_signal_t ) < sizeof( struct thread_internal_signal_t ) ? 0 : 1 ); }; +#ifdef _MSC_VER #pragma warning( pop ) #endif