Accepting request 313319 from home:Andreas_Schwab:Factory
- 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
This commit is contained in:
parent
abfa3583eb
commit
9ffc41921a
@ -2,14 +2,24 @@
|
|||||||
src/lisp.h | 2 ++
|
src/lisp.h | 2 ++
|
||||||
1 file changed, 2 insertions(+)
|
1 file changed, 2 insertions(+)
|
||||||
|
|
||||||
--- src/lisp.h
|
Index: src/lisp.h
|
||||||
+++ src/lisp.h 2015-06-19 15:07:05.294018565 +0000
|
===================================================================
|
||||||
|
--- src/lisp.h.orig
|
||||||
|
+++ src/lisp.h
|
||||||
@@ -1154,6 +1154,8 @@ typedef int Boolint;
|
@@ -1154,6 +1154,8 @@ typedef int Boolint;
|
||||||
|
|
||||||
/* ------------------------ alignment definitions ------------------- */
|
/* ------------------------ alignment definitions ------------------- */
|
||||||
|
|
||||||
+#undef lisp_max_align_t
|
+#if (!defined (__STDC_VERSION__) || __STDC_VERSION__ < 201112L) && \
|
||||||
+#define max_align_t lisp_max_align_t
|
+ (!defined (__cplusplus) || __cplusplus < 201103L)
|
||||||
/* No type has a greater alignment requirement than max_align_t.
|
/* No type has a greater alignment requirement than max_align_t.
|
||||||
(except perhaps for types we don't use, like long double) */
|
(except perhaps for types we don't use, like long double) */
|
||||||
typedef union
|
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
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jun 23 17:18:48 UTC 2015 - schwab@suse.de
|
||||||
|
|
||||||
|
- xemacs-21.5.34-gcc5.patch: Define max_align_t only for C < 11
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Jun 19 15:16:09 UTC 2015 - werner@suse.de
|
Fri Jun 19 15:16:09 UTC 2015 - werner@suse.de
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package xemacs
|
# spec file for package xemacs
|
||||||
#
|
#
|
||||||
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
Loading…
Reference in New Issue
Block a user