Skip to content

Commit

Permalink
fixes broken importc for vcc [backport] (nim-lang#20909)
Browse files Browse the repository at this point in the history
fixes broken imports for vcc
  • Loading branch information
ringabout authored and bung87 committed Jul 29, 2023
1 parent 907c847 commit 57eb3f3
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 57eb3f3

Please sign in to comment.