Skip to content

Commit

Permalink
fixes broken importc for vcc [backport] (#20909)
Browse files Browse the repository at this point in the history
fixes broken imports for vcc

(cherry picked from commit b7d96cd)
  • Loading branch information
ringabout authored and narimiran committed Nov 26, 2022
1 parent ca0757d commit 871e90a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pure/concurrency/atomics.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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".}
Expand Down

0 comments on commit 871e90a

Please sign in to comment.