fixes broken importc for vcc [backport] (#20909)

fixes broken imports for vcc
This commit is contained in:
ringabout
2022-11-25 03:16:51 +08:00
committed by GitHub
parent 27a38a9fce
commit b7d96cd3f5

View File

@@ -211,8 +211,8 @@ else:
# MSVC intrinsics
proc interlockedExchange(location: pointer; desired: int8): int8 {.importc: "_InterlockedExchange8".}
proc interlockedExchange(location: pointer; desired: int16): int16 {.importc: "_InterlockedExchange".}
proc interlockedExchange(location: pointer; desired: int32): int32 {.importc: "_InterlockedExchange16".}
proc interlockedExchange(location: pointer; desired: int16): int16 {.importc: "_InterlockedExchange16".}
proc interlockedExchange(location: pointer; desired: int32): int32 {.importc: "_InterlockedExchange".}
proc interlockedExchange(location: pointer; desired: int64): int64 {.importc: "_InterlockedExchange64".}
proc interlockedCompareExchange(location: pointer; desired, expected: int8): int8 {.importc: "_InterlockedCompareExchange8".}