MacPDF: Introduce CocoaWrapper.h

No behavior change.
This commit is contained in:
Nico Weber 2023-10-02 19:05:21 -04:00 committed by Andreas Kling
parent 65717e3b75
commit d6dff83397
3 changed files with 14 additions and 8 deletions

View file

@ -0,0 +1,12 @@
/*
* Copyright (c) 2023, Nico Weber <thakis@chromium.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
// Several AK types conflict with MacOS types.
#define FixedPoint FixedPointMacOS
#import <Cocoa/Cocoa.h>
#undef FixedPoint

View file

@ -6,10 +6,7 @@
#pragma once
// Several AK types conflict with MacOS types.
#define FixedPoint FixedPointMacOS
#import <Cocoa/Cocoa.h>
#undef FixedPoint
#include "CocoaWrapper.h"
#import "MacPDFView.h"

View file

@ -6,10 +6,7 @@
#pragma once
// Several AK types conflict with MacOS types.
#define FixedPoint FixedPointMacOS
#import <Cocoa/Cocoa.h>
#undef FixedPoint
#include "CocoaWrapper.h"
#include <AK/WeakPtr.h>
#include <LibPDF/Document.h>