From ea640894d32dae396cff4bcf8d25c6f55c7bcb3e Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 18 Sep 2024 10:50:52 -0700 Subject: [PATCH] Fixed SDL_DEFINE_STDBOOL logic if __bool_true_false_are_defined is defined --- include/SDL3/SDL_stdinc.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/SDL3/SDL_stdinc.h b/include/SDL3/SDL_stdinc.h index f1c411b0c..d958eb293 100644 --- a/include/SDL3/SDL_stdinc.h +++ b/include/SDL3/SDL_stdinc.h @@ -44,11 +44,13 @@ #endif #include #ifndef __cplusplus -#if defined(SDL_DEFINE_STDBOOL) && !defined(__bool_true_false_are_defined) +#ifdef SDL_DEFINE_STDBOOL +#ifndef __bool_true_false_are_defined #define __bool_true_false_are_defined 1 #define bool int8_t #define false 0 #define true 1 +#endif #else #include #endif