mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +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.h>
|
||||||
#include <mach/mach_time.h>
|
#include <mach/mach_time.h>
|
||||||
#include <TargetConditionals.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>
|
# include <CoreServices/CoreServices.h>
|
||||||
# endif
|
# endif
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
Loading…
Reference in a new issue