mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 11:55:39 +00:00
check: Fix macro check for OS X
TARGET_OS_MAC is defined on all Apple platforms. You need to check for !TARGET_OS_IPHONE to detect OS X (now called macOS).
This commit is contained in:
parent
d284be3505
commit
f8df150e29
1 changed files with 2 additions and 1 deletions
|
@ -25,7 +25,8 @@
|
|||
#include <mach/mach.h>
|
||||
#include <mach/mach_time.h>
|
||||
#include <TargetConditionals.h>
|
||||
# if TARGET_OS_MAC
|
||||
/* CoreServices.h is only available on macOS */
|
||||
# if TARGET_OS_MAC && !TARGET_OS_IPHONE
|
||||
# include <CoreServices/CoreServices.h>
|
||||
# endif
|
||||
#include <unistd.h>
|
||||
|
|
Loading…
Reference in a new issue