Skip to content

Commit c1ce5cb

Browse files
authored
Merge pull request #12315 from ladislas/fix/equeue-unit-tests-on-macOS
Add check for __APPLE__ & __MACH__ to fix unit tests on macOS
2 parents 91464b2 + 1507b1c commit c1ce5cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

events/internal/equeue_platform.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ extern "C" {
3535
// Try to infer a platform if none was manually selected
3636
#if !defined(EQUEUE_PLATFORM_POSIX) \
3737
&& !defined(EQUEUE_PLATFORM_MBED)
38-
#if defined(__unix__)
38+
#if defined(__unix__) || (defined(__APPLE__) && defined(__MACH__))
3939
#define EQUEUE_PLATFORM_POSIX
4040
#elif defined(__MBED__)
4141
#define EQUEUE_PLATFORM_MBED

0 commit comments

Comments
 (0)