From 3f1e0d0b51dba833eb0731f6447573a133bd79f9 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Sun, 25 Oct 2026 03:51:09 +0000 Subject: Fix debug builds randomly breaking all of a sudden God I hate Microsoft's stupid crappy C headers. So broken. --- src/mem.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/mem.h') diff --git a/src/mem.h b/src/mem.h index e374ca3..ae33092 100644 --- a/src/mem.h +++ b/src/mem.h @@ -18,7 +18,18 @@ #define INC_MEMUTIL_H #ifdef SST_DBG +// HACK: if langext.h is included before this (which for alphabet reasons happens +// often), our noreturn definition breaks Microsoft's debug headers for +// string.h, if it wasn't already included. so we do something similar to the +// hack in gamedata.h except this time not only to avoid namespace pollution but +// to avoid completely breaking everything. dumb, bad, very doubleplusungood. +#ifdef noreturn +#undef noreturn +#endif #include +#ifdef INC_LANGEXT_H +#define noreturn _Noreturn void +#endif #endif #include "intdefs.h" -- cgit v1.2.3-54-g00ecf