From 9ad2665ad830f14721a950c7353090aadd58a36b Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Wed, 17 Nov 2021 21:13:25 +1100 Subject: [PATCH] [mac] Conditionally import UTType header --- v2/internal/frontend/desktop/darwin/WailsContext.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/v2/internal/frontend/desktop/darwin/WailsContext.h b/v2/internal/frontend/desktop/darwin/WailsContext.h index 62e92bd7..364f1e37 100644 --- a/v2/internal/frontend/desktop/darwin/WailsContext.h +++ b/v2/internal/frontend/desktop/darwin/WailsContext.h @@ -10,7 +10,10 @@ #import #import + +#if __has_include() #import +#endif #define ON_MAIN_THREAD(str) dispatch_async(dispatch_get_main_queue(), ^{ str; }); #define unicode(input) [NSString stringWithFormat:@"%C", input]