Commit 0c8b345c authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

mp4: Don't build IOKit specific hack on iOS.

parent 27596ea4
...@@ -57,6 +57,13 @@ ...@@ -57,6 +57,13 @@
#include <limits.h> #include <limits.h>
#ifdef __APPLE__ #ifdef __APPLE__
#include "TargetConditionals.h"
#if !TARGET_OS_IPHONE
#define HAVE_MACOS_IOKIT
#endif
#endif
#ifdef HAVE_MACOS_IOKIT
# include <mach/mach.h> # include <mach/mach.h>
# include <IOKit/IOKitLib.h> # include <IOKit/IOKitLib.h>
# include <CoreFoundation/CFNumber.h> # include <CoreFoundation/CFNumber.h>
...@@ -1724,7 +1731,7 @@ static int GetiPodID( int64_t *p_ipod_id ) ...@@ -1724,7 +1731,7 @@ static int GetiPodID( int64_t *p_ipod_id )
return 0; return 0;
} }
#ifdef __APPLE__ #ifdef HAVE_MACOS_IOKIT
CFTypeRef value; CFTypeRef value;
mach_port_t port; mach_port_t port;
io_object_t device; io_object_t device;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment