Skip to content

Commit dcbbf17

Browse files
committed
invert Linux handling
Rather than checking for non-Linux and including the target specific header, invert the check and include the linux target header if `__linux__` is defined. This makes it easier to target other platforms.
1 parent acc1e46 commit dcbbf17

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

os/object.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@
2626
#include <TargetConditionals.h>
2727
#include <os/availability.h>
2828
#endif
29-
#ifndef __linux__
30-
#include <os/base.h>
31-
#else
29+
#ifdef __linux__
3230
#include <os/linux_base.h>
31+
#else
32+
#include <os/base.h>
3333
#endif
3434

3535
/*!

0 commit comments

Comments
 (0)