Skip to content

Commit

Permalink
[UnifiedPDF] CGPDFPageLayoutGetAreaOfInterestAtPoint should be declar…
Browse files Browse the repository at this point in the history
…ed with C linkage

https://bugs.webkit.org/show_bug.cgi?id=266094
rdar://119394292

Reviewed by Wenson Hsieh.

Since CGPDFPageLayoutGetAreaOfInterestAtPoint is a C API, it must not go
through name mangling, so we specify C linkage for it.

This patch fixes the open source macOS build with unified PDF enabled.

* Source/WebCore/PAL/pal/spi/cg/CoreGraphicsSPI.h:

Canonical link: https://commits.webkit.org/271792@main
  • Loading branch information
aprotyas committed Dec 9, 2023
1 parent 52d668d commit c4fc802
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Source/WebCore/PAL/pal/spi/cg/CoreGraphicsSPI.h
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,13 @@ typedef CF_OPTIONS(uint32_t, CGPDFAreaOfInterest) {
kCGPDFAreaImage = (1 << 1),
};
typedef struct CGPDFPageLayout *CGPDFPageLayoutRef;

WTF_EXTERN_C_BEGIN

CGPDFAreaOfInterest CGPDFPageLayoutGetAreaOfInterestAtPoint(CGPDFPageLayoutRef, CGPoint);

WTF_EXTERN_C_END

#endif // ENABLE(UNIFIED_PDF)

#endif // USE(APPLE_INTERNAL_SDK)
Expand Down

0 comments on commit c4fc802

Please sign in to comment.