mangle names in nimbase.h using cppDefine (#19395) [backport]

mangle names in nimbase.h
fix comments
This commit is contained in:
flywind 2022-01-17 18:14:13 +08:00 • committed by GitHub
commit 4f6b59de96
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 0 deletions

View file

@ -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.