Skip to content

Commit

Permalink
fix for emscripten etc
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheecour committed Jan 28, 2020
1 parent 2ecef8f commit fc1f909
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/pure/includes/osenv.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion lib/system/timers.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit fc1f909

Please sign in to comment.