From d5efee77f8daf572602a9925e34c96698a1dcbdf Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 27 Dec 2022 10:46:06 -0500 Subject: MacOS: Fix timestamps on systems with different clock rates This seems to be a thing at least on MacOS 12 on M1. --- src/mac.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/mac.h') diff --git a/src/mac.h b/src/mac.h index 10e37c5..7473231 100644 --- a/src/mac.h +++ b/src/mac.h @@ -9,6 +9,8 @@ #import +#include + #include @interface PuglWrapperView : NSView @@ -25,8 +27,9 @@ @end struct PuglWorldInternalsImpl { - NSApplication* app; - NSAutoreleasePool* autoreleasePool; + NSApplication* app; + NSAutoreleasePool* autoreleasePool; + struct mach_timebase_info timebaseInfo; }; struct PuglInternalsImpl { -- cgit v1.2.1