forked from pool/xemacs
9ffc41921a
- xemacs-21.5.34-gcc5.patch: Define max_align_t only for C < 11 OBS-URL: https://build.opensuse.org/request/show/313319 OBS-URL: https://build.opensuse.org/package/show/M17N/xemacs?expand=0&rev=82
26 lines
839 B
Diff
26 lines
839 B
Diff
---
|
|
src/lisp.h | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
Index: src/lisp.h
|
|
===================================================================
|
|
--- src/lisp.h.orig
|
|
+++ src/lisp.h
|
|
@@ -1154,6 +1154,8 @@ typedef int Boolint;
|
|
|
|
/* ------------------------ alignment definitions ------------------- */
|
|
|
|
+#if (!defined (__STDC_VERSION__) || __STDC_VERSION__ < 201112L) && \
|
|
+ (!defined (__cplusplus) || __cplusplus < 201103L)
|
|
/* No type has a greater alignment requirement than max_align_t.
|
|
(except perhaps for types we don't use, like long double) */
|
|
typedef union
|
|
@@ -1163,6 +1165,7 @@ typedef union
|
|
struct { void (*f)(void); } f;
|
|
struct { double d; } d;
|
|
} max_align_t;
|
|
+#endif
|
|
|
|
/* ALIGNOF returns the required alignment of a type -- i.e. a value such
|
|
that data of this type must begin at a memory address which is a
|