From 0b2b194cb0457d583b11b8a643bb99dc6709db37 Mon Sep 17 00:00:00 2001 From: Brendan Shanks Date: Tue, 11 Dec 2018 12:38:41 -0800 Subject: [PATCH] macOS: Mark GVWindowController as conforming to PDFViewDelegate Fixes a warning when building against new SDKs. Also add a dummy protocol for pre-10.13 SDKs which don't define it. --- macosx/GVWindowController.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/macosx/GVWindowController.h b/macosx/GVWindowController.h index d6491f29f..d68fd3ca9 100644 --- a/macosx/GVWindowController.h +++ b/macosx/GVWindowController.h @@ -15,7 +15,11 @@ #import #import -@interface GVWindowController : NSWindowController +#if !defined(MAC_OS_X_VERSION_10_13) || MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_13 +@protocol PDFViewDelegate @end +#endif + +@interface GVWindowController : NSWindowController { IBOutlet PDFView *documentView; } -- 2.40.0