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:
parent
17db15f9b1
commit
22e06ee95a
1 changed files with 1 additions and 2 deletions
|
|
@ -24,9 +24,8 @@ when defined(windows):
|
||||||
LockSemaphore: int
|
LockSemaphore: int
|
||||||
SpinCount: 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
|
thePtr {.importc: "ptr".} : Handle
|
||||||
SysCond = RTL_CONDITION_VARIABLE
|
|
||||||
|
|
||||||
proc initSysLock(L: var SysLock) {.importc: "InitializeCriticalSection",
|
proc initSysLock(L: var SysLock) {.importc: "InitializeCriticalSection",
|
||||||
header: "<windows.h>".}
|
header: "<windows.h>".}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue