Skip to content

Commit 1507b1c

Browse files
committed
Add check for __APPLE__ & __MACH__ to fix unit tests on macOS
1 parent f469f71 commit 1507b1c

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)