diff options
author | David Robillard <d@drobilla.net> | 2022-12-27 10:46:06 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-12-27 10:46:06 -0500 |
commit | d5efee77f8daf572602a9925e34c96698a1dcbdf (patch) | |
tree | bfad9228f631d7029ec8e0f5f7be54a8e7e3e48e /src/mac.h | |
parent | ef2544be3f88b20401699519ff75c56b6f151700 (diff) | |
download | pugl-d5efee77f8daf572602a9925e34c96698a1dcbdf.tar.gz pugl-d5efee77f8daf572602a9925e34c96698a1dcbdf.tar.bz2 pugl-d5efee77f8daf572602a9925e34c96698a1dcbdf.zip |
MacOS: Fix timestamps on systems with different clock rates
This seems to be a thing at least on MacOS 12 on M1.
Diffstat (limited to 'src/mac.h')
-rw-r--r-- | src/mac.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -9,6 +9,8 @@ #import <Cocoa/Cocoa.h> +#include <mach/mach_time.h> + #include <stdint.h> @interface PuglWrapperView : NSView<NSTextInputClient> @@ -25,8 +27,9 @@ @end struct PuglWorldInternalsImpl { - NSApplication* app; - NSAutoreleasePool* autoreleasePool; + NSApplication* app; + NSAutoreleasePool* autoreleasePool; + struct mach_timebase_info timebaseInfo; }; struct PuglInternalsImpl { |