summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorlit <litlighilit@foxmail.com>2024-09-05 14:21:30 +0800
committerGitHub <noreply@github.com>2024-09-05 14:21:30 +0800
commite265b3dfdda0e168662a7101038d1f9ac24692d7 (patch)
tree0705f3df8456fbfdce5479915c03b66069c82f45 /lib
parent99f4cfa43850f4927aee329af6a461a22f483de2 (diff)
downloadNim-e265b3dfdda0e168662a7101038d1f9ac24692d7.tar.gz
Make math.isNaN,copySign,etc available on objc (#24025)
fixes #23922

---------

Co-authored-by: ringabout <43030857+ringabout@users.noreply.github.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/pure/math.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/math.nim b/lib/pure/math.nim
index 0cff1491c..ed7d2382f 100644
--- a/lib/pure/math.nim
+++ b/lib/pure/math.nim
@@ -64,7 +64,7 @@ when defined(nimPreviewSlimSystem):
   import std/assertions
 
 
-when defined(c) or defined(cpp):
+when not defined(js) and not defined(nimscript): # C
   proc c_isnan(x: float): bool {.importc: "isnan", header: "<math.h>".}
     # a generic like `x: SomeFloat` might work too if this is implemented via a C macro.