summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean McBride <sean@rogue-research.com>2018-01-04 22:16:03 -0500
committerChris Dickens <christopher.a.dickens@gmail.com>2018-01-08 22:11:04 -0800
commit4f9d58564ed8ee81afc3884fa35a57b16e9bacca (patch)
tree18eaccc64768c99f961eafac8e60e0c400ec9cfd
parentc8069cd8c9c423c2f79ce8580870d210b6e93807 (diff)
downloadlibusb-4f9d58564ed8ee81afc3884fa35a57b16e9bacca.tar.gz
darwin: Suppress deprecation warning when building against 10.13 SDK
Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
-rw-r--r--libusb/os/darwin_usb.c4
-rw-r--r--libusb/version_nano.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/libusb/os/darwin_usb.c b/libusb/os/darwin_usb.c
index 4eb25aa..6279a4f 100644
--- a/libusb/os/darwin_usb.c
+++ b/libusb/os/darwin_usb.c
@@ -36,6 +36,10 @@
#include <mach/mach_host.h>
#include <mach/mach_port.h>
+/* Suppress warnings about the use of the deprecated objc_registerThreadWithCollector
+ * function. Its use is also conditionalized to only older deployment targets. */
+#define OBJC_SILENCE_GC_DEPRECATIONS 1
+
#include <AvailabilityMacros.h>
#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1060 && MAC_OS_X_VERSION_MIN_REQUIRED < 101200
#include <objc/objc-auto.h>
diff --git a/libusb/version_nano.h b/libusb/version_nano.h
index 3453e23..f263a06 100644
--- a/libusb/version_nano.h
+++ b/libusb/version_nano.h
@@ -1 +1 @@
-#define LIBUSB_NANO 11291
+#define LIBUSB_NANO 11292