1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
From 60022028e2975e9175ccf990eada101481ddb64e Mon Sep 17 00:00:00 2001
From: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Date: Wed, 24 Sep 2025 15:46:27 +0200
Subject: [PATCH] DylpStdLib/dylib_std.h: do not redefine bool
In C23 bool is a predefined type. Check the C version.
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
---
/DyLP/src/DylpStdLib/dylib_std.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/DyLP/src/DylpStdLib/dylib_std.h b/src/DylpStdLib/dylib_std.h
index 0476bfe..bd0af83 100644
--- a/DyLP/src/DylpStdLib/dylib_std.h
+++ b/src/DylpStdLib/dylib_std.h
@@ -63,6 +63,7 @@
#ifndef __cplusplus
#define FALSE 0
#define TRUE 1
+# if __STDC_VERSION__ < 202311
# ifdef BOOL
typedef BOOL bool ;
# else
@@ -79,6 +80,7 @@
typedef int bool ;
# endif
#endif
+#endif
#ifdef __cplusplus
#ifndef FALSE
|