Skip to content

Commit

Permalink
Merge pull request #820 from pbdot/ec-fix-thread-check
Browse files Browse the repository at this point in the history
Fix thread size guard for non-msvc compilers
  • Loading branch information
pbdot authored Jan 11, 2025
2 parents 0c2e7cc + c82163c commit 5786db7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libraries/thread/thread.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 5786db7

Please sign in to comment.