Define OSATOMIC_USE_INLINED to get usable atomics on DARWIN 33/12433/3
authorDave Botsch <botsch@cnf.cornell.edu>
Thu, 3 Nov 2016 16:22:21 +0000 (12:22 -0400)
committerBenjamin Kaduk <kaduk@mit.edu>
Sun, 27 Nov 2016 07:48:02 +0000 (02:48 -0500)
commit74f837fd943ddfa20d349a83d6286a0183cb4663
treea7f3f7014054bb9a5e101f8b92d22ce9f2f4ab3c
parentf5f057ce8198480fb9c67f2a8c8eee906f8a7c4a
Define OSATOMIC_USE_INLINED to get usable atomics on DARWIN

In Mac OS 10.12, legacy interfaces for atomic operations have been
deprecated. Defining OSATOMIC_USE_INLINED gets us inline implementations
of the OSAtomic interfaces in terms of the <stdatomic.h> primitives.
This is a transition convenience.

Also indent preprocessor directives within the main DARWIN block to
improve readability.

Change-Id: Id10ae007d5427486f1b0a307a04a90f263201150
Reviewed-on: https://gerrit.openafs.org/12433
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
src/rx/rx_atomic.h