From cf83ffd8a1736a5135b39ae7ce71cfc6f73f92fb Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Mon, 22 Jun 2026 21:06:14 -0400 Subject: [PATCH] stdinc: Add a little comment to SDL_bool for wikiheaders. --- include/SDL_stdinc.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/SDL_stdinc.h b/include/SDL_stdinc.h index 73df518fb0..e4cb94bed5 100644 --- a/include/SDL_stdinc.h +++ b/include/SDL_stdinc.h @@ -178,12 +178,17 @@ void *alloca(size_t); /* @{ */ #ifdef __CC_ARM +#ifndef SDL_WIKI_DOCUMENTATION_SECTION /* ARM's compiler throws warnings if we use an enum: like "SDL_bool x = a < b;" */ #define SDL_FALSE 0 #define SDL_TRUE 1 typedef int SDL_bool; +#endif #else -typedef enum +/** + * A boolean (true/false) type. + */ +typedef enum SDL_bool { SDL_FALSE = 0, SDL_TRUE = 1