You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
898 B
19 lines
898 B
6 years ago
|
Fix -Wundef warning around the definition of max_align_t. Updates
|
||
|
glibc-rh1418978-max_align_t.patch. Upstream assumes C11 support and
|
||
|
therefore does not need this definition.
|
||
|
|
||
|
diff --git a/include/sys/cdefs.h b/include/sys/cdefs.h
|
||
|
index 29da941991f9a206..25ff204e4c632865 100644
|
||
|
--- a/include/sys/cdefs.h
|
||
|
+++ b/include/sys/cdefs.h
|
||
|
@@ -20,7 +20,8 @@ rtld_hidden_proto (__chk_fail)
|
||
|
is also available in C99 mode. The aligned attributes are required
|
||
|
because some ABIs have reduced alignment requirements for struct and
|
||
|
union members. */
|
||
|
-#if __STDC_VERSION__ < 201112L && __cplusplus < 201103L
|
||
|
+#if (!defined (__STDC_VERSION__) || __STDC_VERSION__ < 201112L) \
|
||
|
+ && (!defined (__cplusplus) || __cplusplus < 201103L)
|
||
|
typedef struct {
|
||
|
long long ll __attribute__ ((__aligned__ (__alignof__ (long long))));
|
||
|
long double ld __attribute__ ((__aligned__ (__alignof__ (long double))));
|