mirror of
https://github.com/YACReader/yacreader
synced 2025-05-25 09:50:33 -04:00
Fix compile error on macos qt6 due to __OBJC_BOOL_IS_BOOL macro
This commit is contained in:
parent
894ba18ffd
commit
450d3c18b2
@ -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];
|
||||
}
|
||||
}
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user