File yasm-gcc15.patch of Package yasm

diff -upr yasm-1.3.0.orig/libyasm/bitvect.h yasm-1.3.0/libyasm/bitvect.h
--- yasm-1.3.0.orig/libyasm/bitvect.h	2011-08-28 01:13:19.000000000 +0200
+++ yasm-1.3.0/libyasm/bitvect.h	2025-02-13 10:25:48.009772943 +0100
@@ -5,7 +5,7 @@
 /*****************************************************************************/
 /*  MODULE IMPORTS:                                                          */
 /*****************************************************************************/
-
+#include <stdbool.h>
 /* ToolBox.h */
 /*****************************************************************************/
 /*  NOTE: The type names that have been chosen here are somewhat weird on    */
@@ -77,15 +77,7 @@ typedef  Z_longword         *Z_longwordp
 #define TRUE        (0==0)
 #endif
 
-#ifdef __cplusplus
-    typedef bool boolean;
-#else
-    #ifdef MACOS_TRADITIONAL
-        #define boolean Boolean
-    #else
-        typedef enum boolean { false = FALSE, true = TRUE } boolean;
-    #endif
-#endif
+typedef bool boolean;
 
 /*****************************************************************************/
 /*  MODULE INTERFACE:                                                        */
openSUSE Build Service is sponsored by