mirror of https://github.com/ARMmbed/mbed-os.git
Add check for __APPLE__ & __MACH__ to fix unit tests on macOS
parent
f469f710bc
commit
1507b1c3e1
|
|
@ -35,7 +35,7 @@ extern "C" {
|
|||
// Try to infer a platform if none was manually selected
|
||||
#if !defined(EQUEUE_PLATFORM_POSIX) \
|
||||
&& !defined(EQUEUE_PLATFORM_MBED)
|
||||
#if defined(__unix__)
|
||||
#if defined(__unix__) || (defined(__APPLE__) && defined(__MACH__))
|
||||
#define EQUEUE_PLATFORM_POSIX
|
||||
#elif defined(__MBED__)
|
||||
#define EQUEUE_PLATFORM_MBED
|
||||
|
|
|
|||
Loading…
Reference in New Issue