diff options
author | Sean McBride <sean@rogue-research.com> | 2018-01-04 22:16:03 -0500 |
---|---|---|
committer | Chris Dickens <christopher.a.dickens@gmail.com> | 2018-01-08 22:11:04 -0800 |
commit | 4f9d58564ed8ee81afc3884fa35a57b16e9bacca (patch) | |
tree | 18eaccc64768c99f961eafac8e60e0c400ec9cfd | |
parent | c8069cd8c9c423c2f79ce8580870d210b6e93807 (diff) | |
download | libusb-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.c | 4 | ||||
-rw-r--r-- | libusb/version_nano.h | 2 |
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 |