SDL: stdlib: Assert that signed integers use two's complement arithmetic

From 4efbe1ca285c2b0affd27ecd9f561136d151b644 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Carl=20=C3=85stholm?= <[EMAIL REDACTED]>
Date: Tue, 10 Sep 2024 21:52:06 +0200
Subject: [PATCH] stdlib: Assert that signed integers use two's complement
 arithmetic

---
 include/SDL3/SDL_stdinc.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/SDL3/SDL_stdinc.h b/include/SDL3/SDL_stdinc.h
index 093b3d066fa25..0f45ff24cfe0e 100644
--- a/include/SDL3/SDL_stdinc.h
+++ b/include/SDL3/SDL_stdinc.h
@@ -587,6 +587,7 @@ typedef struct SDL_alignment_test
     void *b;
 } SDL_alignment_test;
 SDL_COMPILE_TIME_ASSERT(struct_alignment, sizeof(SDL_alignment_test) == (2 * sizeof(void *)));
+SDL_COMPILE_TIME_ASSERT(two_s_complement, (int)~(int)0 == (int)(-1));
 #endif /* DOXYGEN_SHOULD_IGNORE_THIS */
 /** \endcond */