Skip to content

Commit 7364da5

Browse files
committed
Fix os import
1 parent 3d944ac commit 7364da5

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/stdx/os.nim

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1+
import std/asyncdispatch
2+
import std/os
3+
export os
14

2-
## This whole module is only for Windows
5+
## Windows stuff
36
when defined(windows):
4-
57
import winim/lean
6-
import std/asyncdispatch
7-
import std/os
8-
export os
98

109

11-
proc startNativeEventLoop*() {.async.} =
12-
##
13-
## Runs the Windows event loop in a manner that's compatible with async dispatch. Stops when WM_QUIT is received.
14-
##
10+
proc startNativeEventLoop*() {.async.} =
11+
##
12+
## Runs the Windows event loop in a manner that's compatible with async dispatch. Stops when WM_QUIT is received.
13+
##
1514

16-
# More planned, but for now stop if not on Windows
17-
when not defined(windows):
18-
return
15+
# More planned, but for now stop if not on Windows
16+
when not defined(windows):
17+
return
18+
else:
1919

2020
# Only allow it to run once at a time
2121
var isRunning {.global.} = false

0 commit comments

Comments
 (0)