diff options
Diffstat (limited to 'sysdeps/htl/pthreadP.h')
-rw-r--r-- | sysdeps/htl/pthreadP.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/htl/pthreadP.h b/sysdeps/htl/pthreadP.h index 30e074c..af01545 100644 --- a/sysdeps/htl/pthreadP.h +++ b/sysdeps/htl/pthreadP.h @@ -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 */ |