fix build with gcc15 + plotutils-gcc15.patch OBS-URL: https://build.opensuse.org/package/show/Publishing/plotutils?expand=0&rev=29
27 lines
940 B
Diff
27 lines
940 B
Diff
Index: plotutils-2.6/include/sys-defines.h
|
|
===================================================================
|
|
--- plotutils-2.6.orig/include/sys-defines.h
|
|
+++ plotutils-2.6/include/sys-defines.h
|
|
@@ -255,7 +255,7 @@ extern __C_LINKAGE void free (void * ptr
|
|
|
|
#ifndef __cplusplus
|
|
#ifdef __STDC__
|
|
-typedef enum { false = 0, true = 1 } bool;
|
|
+# include <stdbool.h>
|
|
#else /* not __STDC__, do things the old-fashioned way */
|
|
typedef int bool;
|
|
#define false 0
|
|
Index: plotutils-2.6/libxmi/sys-defines.h
|
|
===================================================================
|
|
--- plotutils-2.6.orig/libxmi/sys-defines.h
|
|
+++ plotutils-2.6/libxmi/sys-defines.h
|
|
@@ -169,7 +169,7 @@ extern __C_LINKAGE void free (void * ptr
|
|
#ifndef __cplusplus
|
|
#ifndef HAVE_BOOL_IN_CC
|
|
#ifdef __STDC__
|
|
-typedef enum { false = 0, true = 1 } bool;
|
|
+# include <stdbool.h>
|
|
#else /* not __STDC__, do things the old-fashioned way */
|
|
typedef int bool;
|
|
#define false 0
|