From 2faae8457d61585f7ef39d28a77857efa1ef5874 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sat, 30 Dec 2023 11:44:40 -0800 Subject: [PATCH] The C standard defines a boolean expression as a signed integer value. Microsoft came to the same conclusion: https://devblogs.microsoft.com/oldnewthing/20110328-00/?p=11113 Fixes https://github.com/libsdl-org/SDL/issues/8761 --- include/SDL3/SDL_stdinc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/SDL3/SDL_stdinc.h b/include/SDL3/SDL_stdinc.h index a257513f3..90cf90530 100644 --- a/include/SDL3/SDL_stdinc.h +++ b/include/SDL3/SDL_stdinc.h @@ -133,7 +133,7 @@ char *alloca(); */ #define SDL_FALSE 0 #define SDL_TRUE 1 -typedef unsigned int SDL_bool; +typedef int SDL_bool; /** * A signed 8-bit integer type.