Skip to contentSkip to conversation

psplash: Only define bool if using C standard older than C23

PATCH New Khem Raj 1 participant 2 messages Mar 18, 2025

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/2 psplash: Only define bool if using C standard older than C23

gcc-15 switched to -std=c23 by default:

https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=55e3bd376b2214e200fa76d12b67ff259b06c212

only typedef int bool for __STDC_VERSION__ <= 201710L (C17)

---
 psplash.h | 3 +++
 1 file changed, 3 insertions(+)
psplash.h +3 -0
index 1c42ec7..138e49d 100644
@@ -37,7 +37,10 @@
 
 typedef uint8_t  uint8;
 typedef uint16_t uint16;
+
+#if defined __STDC__ && defined __STDC_VERSION__ && __STDC_VERSION__ <= 201710L
 typedef int            bool;
+#endif
 
 #ifndef FALSE
 #define FALSE 0
author
#1 lore raw

PATCH 2/2 README: Update mailing list to point to yocto-patches ml

---
 README | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
README +2 -2
index 23d5bcd..7c61e0b 100644
@@ -12,7 +12,7 @@ psplash such as boot progress information.
 Contributing
 ============
 To contribute to this layer you should submit the patches for review to the
-mailing list ([email protected]).
+mailing list ([email protected]).
 
 Please refer to
     http://openembedded.org/wiki/Commit_Patch_Message_Guidelines
@@ -25,4 +25,4 @@ When creating patches, please use something like:
     git format-patch -M -s --subject-prefix='psplash][PATCH' origin
 
 When sending patches, please use something like:
-    git send-email --to [email protected] <generated patch>
+    git send-email --to [email protected] <generated patch>