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