This commit is contained in:
andri lim 2017-08-08 09:04:39 +07:00
commit d0365dcadf

View file

@ -172,7 +172,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(static_cast<NI volatile *>(#), #)", 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: