_Static_assert (sizeof (type) == size, \
"sizeof (" #type ") != " #size)
-#define ASSERT_PTHREAD_INTERNAL_SIZE(type, internal) \
- _Static_assert (sizeof ((type) { { 0 } }).__size >= sizeof (internal),\
- "sizeof (" #type ".__size) < sizeof (" #internal ")")
+#define ASSERT_PTHREAD_INTERNAL_SIZE(type, internal) \
+ { _Static_assert (sizeof ((type) { { 0 } }).__size >= sizeof (internal), \
+ "sizeof (" #type ".__size) < sizeof (" #internal ")"); \
+ _Static_assert (_Alignof (type) >= _Alignof (internal), \
+ "_Aignof (" #type ") < _Alignof (" #internal ")"); }
#define ASSERT_PTHREAD_STRING(x) __STRING (x)
#define ASSERT_PTHREAD_INTERNAL_OFFSET(type, member, offset) \