File gputils-gcc15.patch of Package gputils

diff -upr gputils-1.5.2.orig/libgputils/gpcoffgen.h gputils-1.5.2/libgputils/gpcoffgen.h
--- gputils-1.5.2.orig/libgputils/gpcoffgen.h	2025-05-07 06:36:26.569734412 +0000
+++ gputils-1.5.2/libgputils/gpcoffgen.h	2025-05-07 06:46:37.858716071 +0000
@@ -88,7 +88,7 @@ extern gp_reloc_t *gp_coffgen_add_reloc(
 #define RELOC_DISABLE_WARN              (1 << 0)
 #define RELOC_ENABLE_CINIT_WARN         (1 << 1)
 
-extern void gp_coffgen_check_relocations(const gp_object_t *Object, unsigned int Behavior);
+extern void gp_coffgen_check_relocations(const gp_object_t *Object, gp_boolean Behavior);
 
 extern gp_boolean gp_coffgen_del_reloc(gp_section_t *Section, gp_reloc_t *Relocation);
 extern const char *gp_coffgen_reloc_type_to_str(uint16_t Type);
diff -upr gputils-1.5.2.orig/libgputils/gptypes.h gputils-1.5.2/libgputils/gptypes.h
--- gputils-1.5.2.orig/libgputils/gptypes.h	2025-05-07 06:36:26.564625043 +0000
+++ gputils-1.5.2/libgputils/gptypes.h	2025-05-07 06:39:03.405350007 +0000
@@ -26,10 +26,14 @@ Boston, MA 02111-1307, USA.  */
 
 #include "stdhdr.h"
 
+#if __STDC_VERSION__ < 202311L
 typedef enum {
   false = (0 == 1),
   true  = (0 == 0)
 } gp_boolean;
+#else
+typedef bool gp_boolean;
+#endif
 
 typedef long    gp_symvalue_t;
 

openSUSE Build Service is sponsored by