Merge pull request #12315 from ladislas/fix/equeue-unit-tests-on-macOS

Add check for __APPLE__ & __MACH__ to fix unit tests on macOS
pull/12335/head
Kevin Bracey 2020-01-30 10:21:08 +02:00 committed by GitHub
commit c1ce5cb20c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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