summaryrefslogtreecommitdiff
path: root/dev-lang/uasm/files/bool-fix.diff
diff options
context:
space:
mode:
authorNRK <nrk@disroot.org>2025-03-08 20:52:10 +0000
committerSam James <sam@gentoo.org>2025-03-10 00:21:24 +0000
commitf1ad5f3ab6fec658da13c94151de756ccc6373be (patch)
tree6f14b05386902a05054f6928c4ce46928409090d /dev-lang/uasm/files/bool-fix.diff
parentd9e15a75e6f60417f941868ae1761ab70a1116b2 (diff)
downloadgentoo-f1ad5f3ab6fec658da13c94151de756ccc6373be.tar.gz
gentoo-f1ad5f3ab6fec658da13c94151de756ccc6373be.tar.bz2
gentoo-f1ad5f3ab6fec658da13c94151de756ccc6373be.zip
dev-lang/uasm: replace custom bool with stdbool.h
Closes: https://bugs.gentoo.org/944192 Signed-off-by: NRK <nrk@disroot.org> Closes: https://github.com/gentoo/gentoo/pull/40969 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-lang/uasm/files/bool-fix.diff')
-rw-r--r--dev-lang/uasm/files/bool-fix.diff18
1 files changed, 18 insertions, 0 deletions
diff --git a/dev-lang/uasm/files/bool-fix.diff b/dev-lang/uasm/files/bool-fix.diff
new file mode 100644
index 000000000000..6071a0d42ba9
--- /dev/null
+++ b/dev-lang/uasm/files/bool-fix.diff
@@ -0,0 +1,18 @@
+https://bugs.gentoo.org/944192
+
+diff --git a/H/bool.h b/H/bool.h
+index fbf55c8..ddb7396 100644
+--- a/H/bool.h
++++ b/H/bool.h
+@@ -30,10 +30,7 @@
+ ****************************************************************************/
+
+
+-#if !defined( BOOL_DEFINED ) && !defined( bool ) && !(__WATCOMC__ >= 1070 && defined(__cplusplus))
+- #define BOOL_DEFINED
+- typedef unsigned char bool;
+-#endif
++#include <stdbool.h>
+ #ifndef TRUE
+ #define TRUE 1
+ #endif