diff options
author | flywind <xzsflywind@gmail.com> | 2022-01-17 18:14:13 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-17 11:14:13 +0100 |
commit | 4f6b59de9698d0c29a2170ecc23c8d009b3181b7 (patch) | |
tree | d084e65daee82649989354688a646f710b5d6331 /config | |
parent | 2c5b367001cc53859048d9adf450a5db3a949b92 (diff) | |
download | Nim-4f6b59de9698d0c29a2170ecc23c8d009b3181b7.tar.gz |
mangle names in nimbase.h using cppDefine (#19395) [backport]
mangle names in nimbase.h fix comments
Diffstat (limited to 'config')
-rw-r--r-- | config/config.nims | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/config/config.nims b/config/config.nims index 893d6960f..88c344642 100644 --- a/config/config.nims +++ b/config/config.nims @@ -3,6 +3,11 @@ cppDefine "errno" cppDefine "unix" +# mangle the macro names in nimbase.h +cppDefine "NAN_INFINITY" +cppDefine "INF" +cppDefine "NAN" + when defined(nimStrictMode): # xxx add more flags here, and use `-d:nimStrictMode` in more contexts in CI. |