mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-03 02:18:00 +00:00
Ref #17831(synchapi.h: No such file or directory) (#17832)
* Ref #17831 use windows.h * use header: "windows.h" * Update syslocks.nim * Update lib/system/syslocks.nim
This commit is contained in:
@@ -24,9 +24,8 @@ when defined(windows):
|
||||
LockSemaphore: int
|
||||
SpinCount: int
|
||||
|
||||
RTL_CONDITION_VARIABLE {.importc: "RTL_CONDITION_VARIABLE", header: "synchapi.h".} = object
|
||||
SysCond {.importc: "RTL_CONDITION_VARIABLE", header: "<windows.h>".} = object
|
||||
thePtr {.importc: "ptr".} : Handle
|
||||
SysCond = RTL_CONDITION_VARIABLE
|
||||
|
||||
proc initSysLock(L: var SysLock) {.importc: "InitializeCriticalSection",
|
||||
header: "<windows.h>".}
|
||||
|
||||
Reference in New Issue
Block a user