This commit is contained in:
Andrii Riabushenko 2019-04-03 15:06:26 +01:00
commit ad1c6fe8b9

View file

@ -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: