diff --git a/Sources/COpenSwiftUI/Overlay/CoreVideo/DisplayLink.c b/Sources/COpenSwiftUI/Overlay/CoreVideo/DisplayLink.c index 9474e281f..6e18651b0 100644 --- a/Sources/COpenSwiftUI/Overlay/CoreVideo/DisplayLink.c +++ b/Sources/COpenSwiftUI/Overlay/CoreVideo/DisplayLink.c @@ -10,9 +10,11 @@ #if OPENSWIFTUI_TARGET_OS_OSX #include -#include #include +// The C source only needs this QuartzCore function. Importing the framework +// umbrella also pulls Objective-C layer declarations into this translation unit. +extern CFTimeInterval CACurrentMediaTime(void); extern void CVDisplayLinkSetPaused(CVDisplayLinkRef displayLink, bool paused); static void remove_link(DisplayLinkRef displayLink);