summary refs log tree commit diff stats
path: root/config/config.nims
diff options
context:
space:
mode:
Diffstat (limited to 'config/config.nims')
-rw-r--r--config/config.nims9
1 files changed, 8 insertions, 1 deletions
diff --git a/config/config.nims b/config/config.nims
index 2ae86012c..b8979e8e3 100644
--- a/config/config.nims
+++ b/config/config.nims
@@ -3,10 +3,15 @@
 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.
 
-  # pending bug #14246, enable this:
+  # enable this:
   # when defined(nimHasWarningAsError):
   #   switch("warningAsError", "UnusedImport")
 
@@ -14,3 +19,5 @@ when defined(nimStrictMode):
     # switch("hint", "ConvFromXtoItselfNotNeeded")
     switch("hintAsError", "ConvFromXtoItselfNotNeeded")
     # future work: XDeclaredButNotUsed
+
+switch("define", "nimVersion:" & NimVersion) # deadcode