diff options
| author | 2026-10-25 03:51:09 +0000 | |
|---|---|---|
| committer | 2026-11-11 23:15:15 +0000 | |
| commit | 3f1e0d0b51dba833eb0731f6447573a133bd79f9 (patch) | |
| tree | 4ed573f10f0d614eb35d905875e2bf1785d5a671 /src/mem.h | |
| parent | bea6da22c847b440fbd53a14a65fce6ea23a78af (diff) | |
| download | sst-3f1e0d0b51dba833eb0731f6447573a133bd79f9.tar.gz sst-3f1e0d0b51dba833eb0731f6447573a133bd79f9.zip | |
Fix debug builds randomly breaking all of a sudden
God I hate Microsoft's stupid crappy C headers. So broken.
Diffstat (limited to 'src/mem.h')
| -rw-r--r-- | src/mem.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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 <string.h> +#ifdef INC_LANGEXT_H +#define noreturn _Noreturn void +#endif #endif #include "intdefs.h" |
