From 28576e8f2c2df465f823a41f9679887d1064cf3a Mon Sep 17 00:00:00 2001 From: Jannis Harder Date: Mon, 8 Sep 2025 13:55:09 +0200 Subject: [PATCH] Add macOS workaround to constids.inc The ID(OVERFLOW) IdString isn't used widely enough that we require a statically allocated IdString, but I think it's good to have an example workaround in place in case more collisions come up. --- kernel/constids.inc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/kernel/constids.inc b/kernel/constids.inc index 2be70694a..d75f0a784 100644 --- a/kernel/constids.inc +++ b/kernel/constids.inc @@ -1,4 +1,10 @@ // These must be in perfect ASCII order!!! + +// Workaround for macos's math.h defining an OVERFLOW macro +#ifdef OVERFLOW +#undef OVERFLOW +#endif + X($_ALDFFE_NNN_) X($_ALDFFE_NNP_) X($_ALDFFE_NPN_)