OMNI_APPLE_OLD_API
MACRO

OMNI_APPLE_OLD_API - Defines whether to use older Apple API's or macOS API's.

SYNOPSIS top

#define OMNI_APPLE_OLD_API

If defined, will change certain functions used.

DESCRIPTION top

If this macro is defined, then the older Apple API set will be utilized versus the newer macOS calls (useful for compiling on older OS X platforms).

For example, in omni::sync::spin_lock when the object is locked, if this macro is defined then OSSpinLockLock is used, while if this macro is not defined then os_unfair_lock_lock is utilized.

CONSIDERATIONS top

No special considerations.

PLATFORM SPECIFIC top

This macro option only applies to Apple platforms and will have no effect if defined on a non Apple platform.

NOTES top

None.