Fix compile error on macos qt6 due to __OBJC_BOOL_IS_BOOL macro

This commit is contained in:
Luis Ángel San Martín Rodríguez 2022-09-10 11:06:41 +02:00 committed by Luis Ángel San Martín
parent 894ba18ffd
commit 450d3c18b2
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,9 @@
#include <QtGlobal>
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
#undef __OBJC_BOOL_IS_BOOL
#endif
#import <AppKit/AppKit.h>
#include "trayhandler.h"
@ -8,4 +14,4 @@ void OSXShowDockIcon()
void OSXHideDockIcon()
{
[NSApp setActivationPolicy:NSApplicationActivationPolicyAccessory];
}
}

View File

@ -1,5 +1,9 @@
#include "pdf_comic.h"
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
#undef __OBJC_BOOL_IS_BOOL
#endif
#import <AppKit/AppKit.h>
#import <Foundation/Foundation.h>
#import <ApplicationServices/ApplicationServices.h>