Add check for __APPLE__ & __MACH__ to fix unit tests on macOS

pull/12315/head
Ladislas de Toldi 2020-01-27 14:01:50 +01:00
parent f469f710bc
commit 1507b1c3e1
No known key found for this signature in database
GPG Key ID: C5241848279CD797
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ extern "C" {
// Try to infer a platform if none was manually selected // Try to infer a platform if none was manually selected
#if !defined(EQUEUE_PLATFORM_POSIX) \ #if !defined(EQUEUE_PLATFORM_POSIX) \
&& !defined(EQUEUE_PLATFORM_MBED) && !defined(EQUEUE_PLATFORM_MBED)
#if defined(__unix__) #if defined(__unix__) || (defined(__APPLE__) && defined(__MACH__))
#define EQUEUE_PLATFORM_POSIX #define EQUEUE_PLATFORM_POSIX
#elif defined(__MBED__) #elif defined(__MBED__)
#define EQUEUE_PLATFORM_MBED #define EQUEUE_PLATFORM_MBED