The importc for atomicCompareExchange is incorrectly defined.

The .importc: was referring to __atomic_compare_exchange_n this corrects
it to be __atomic_compare_exchange.
This commit is contained in:
Wink Saville
2015-04-13 20:35:37 -07:00
parent 6fb372d96b
commit b0b3a2500a

View File

@@ -87,7 +87,7 @@ when someGcc and hasThreadSupport:
proc atomicCompareExchange*[T: TAtomType](p, expected, desired: ptr T,
weak: bool, success_memmodel: AtomMemModel, failure_memmodel: AtomMemModel): bool {.
importc: "__atomic_compare_exchange_n ", nodecl.}
importc: "__atomic_compare_exchange", nodecl.}
## This proc implements the generic version of atomic_compare_exchange.
## The proc is virtually identical to atomic_compare_exchange_n, except the desired
## value is also a pointer.