From 8cc0e2d15a11adb32eff8dde743b35df033c408b Mon Sep 17 00:00:00 2001 From: Un1q32 Date: Sun, 21 Jun 2026 07:05:01 -0400 Subject: [PATCH 1/2] fix for clang 1.1 --- vendor/stb/ds/stb_ds.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/vendor/stb/ds/stb_ds.h b/vendor/stb/ds/stb_ds.h index 112fffcb1..b0c1b30cd 100644 --- a/vendor/stb/ds/stb_ds.h +++ b/vendor/stb/ds/stb_ds.h @@ -513,7 +513,12 @@ extern void * stbds_shmode_func(size_t elemsize, int mode); #endif #if !defined(__cplusplus) -#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L && (!defined(__GNUC__) || (__GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))) +// This causes issues with old compilers, (GCC 3.0, Clang 1.1, and maybe more), and all it does +// is allow the stb functions to work on rvalues, which we don't do anywhere in the codebase. +// I don't feel like figuring out the oldest version of every compiler this works on and writing +// a huge conditional, so just disable it entirely. +//#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L +#if 0 #define STBDS_HAS_LITERAL_ARRAY #endif #endif From a8897937beaf4bae75118bc6274f3b2f936ab36b Mon Sep 17 00:00:00 2001 From: Un1q32 Date: Sun, 21 Jun 2026 07:06:41 -0400 Subject: [PATCH 2/2] nit --- vendor/stb/ds/stb_ds.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/stb/ds/stb_ds.h b/vendor/stb/ds/stb_ds.h index b0c1b30cd..b7e9d6444 100644 --- a/vendor/stb/ds/stb_ds.h +++ b/vendor/stb/ds/stb_ds.h @@ -514,7 +514,7 @@ extern void * stbds_shmode_func(size_t elemsize, int mode); #if !defined(__cplusplus) // This causes issues with old compilers, (GCC 3.0, Clang 1.1, and maybe more), and all it does -// is allow the stb functions to work on rvalues, which we don't do anywhere in the codebase. +// is allow the stb_ds functions to work on rvalues, which we don't do anywhere in the codebase. // I don't feel like figuring out the oldest version of every compiler this works on and writing // a huge conditional, so just disable it entirely. //#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L