mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-08 17:42:12 +03:00
htl: Add type sizes in bits/pthreadtypes-arch.h and check them
This commit is contained in:
@@ -74,4 +74,8 @@ hidden_proto (__pthread_setspecific)
|
||||
hidden_proto (_pthread_mutex_init)
|
||||
#endif
|
||||
|
||||
#define ASSERT_TYPE_SIZE(type, size) \
|
||||
_Static_assert (sizeof (type) == size, \
|
||||
"sizeof (" #type ") != " #size)
|
||||
|
||||
#endif /* pthreadP.h */
|
||||
|
Reference in New Issue
Block a user