darwin: do not use deprecated OSAtomicIncrement32Barrier in 10.12
authorNathan Hjelm <hjelmn@me.com>
Tue, 13 Sep 2016 03:38:44 +0000 (21:38 -0600)
committerNathan Hjelm <hjelmn@me.com>
Tue, 13 Sep 2016 03:38:44 +0000 (21:38 -0600)
commit1e05092aa98d60c717929629ac16590595e08431
tree8c3c90a1c1183e108b39ccf5af372ecc6a13f981
parent756cc2b5d1558cb7ef59f73d4246f50c4f18824a
darwin: do not use deprecated OSAtomicIncrement32Barrier in 10.12

This commit fixes a warning introduced by macOS 10.12 Sierra when
using the OS atomics. These atomics have been deprecated in favor
of the ones provided by C11 (stdatomic.h). On older versions of
OS X we still use the OS atomics (now OSAtomicAdd32Barrier) and
on 10.12.0 and newer we use atomic_fetch_add.

Signed-off-by: Nathan Hjelm <hjelmn@me.com>
libusb/os/darwin_usb.c
libusb/version_nano.h