fixes #10953
This commit is contained in:
parent
dc2986789b
commit
ad1c6fe8b9
1 changed files with 1 additions and 1 deletions
|
|
@ -171,7 +171,7 @@ elif defined(vcc) and hasThreadSupport:
|
||||||
header: "<intrin.h>".}
|
header: "<intrin.h>".}
|
||||||
else:
|
else:
|
||||||
proc addAndFetch*(p: ptr int, val: int): int {.
|
proc addAndFetch*(p: ptr int, val: int): int {.
|
||||||
importcpp: "_InterlockedExchangeAdd(reinterpret_cast<LONG volatile *>(#), static_cast<LONG>(#))",
|
importcpp: "_InterlockedExchangeAdd(reinterpret_cast<long volatile *>(#), static_cast<long>(#))",
|
||||||
header: "<intrin.h>".}
|
header: "<intrin.h>".}
|
||||||
else:
|
else:
|
||||||
when sizeof(int) == 8:
|
when sizeof(int) == 8:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue