mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 05:50:30 +00:00
miscellaneous bug fixes (#13291)
* fix for emscripten etc * add testcase for #13290 * replace deprecated isNilOrWhitespace
This commit is contained in:
@@ -68,7 +68,7 @@ when defined(windows) and not defined(nimscript):
|
||||
|
||||
else:
|
||||
const
|
||||
useNSGetEnviron = (defined(macosx) and not defined(ios)) or defined(nimscript)
|
||||
useNSGetEnviron = (defined(macosx) and not defined(ios) and not defined(emscripten)) or defined(nimscript)
|
||||
|
||||
when useNSGetEnviron:
|
||||
# From the manual:
|
||||
|
||||
@@ -31,7 +31,7 @@ when defined(windows):
|
||||
|
||||
result = Nanos(float64(a.int64 - b.int64) * performanceCounterRate)
|
||||
|
||||
elif defined(macosx):
|
||||
elif defined(macosx) and not defined(emscripten):
|
||||
type
|
||||
MachTimebaseInfoData {.pure, final,
|
||||
importc: "mach_timebase_info_data_t",
|
||||
|
||||
Reference in New Issue
Block a user