From 7c534c3c3d73666d24f7ba858f8ee9314ffa2707 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Mon, 15 Oct 2018 20:16:02 +0200 Subject: Change Cocoa import to be more specific Instead of including Cocoa as a whole, include the specific frameworks that the library depends on. `NSEvent` is in `AppKit` and `CGEvent` etc. is in `CoreGraphics`. --- dome_key_event_source_simulator/dome_key_event_source_simulator.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dome_key_event_source_simulator/dome_key_event_source_simulator.h b/dome_key_event_source_simulator/dome_key_event_source_simulator.h index 6249a50..77c87a0 100644 --- a/dome_key_event_source_simulator/dome_key_event_source_simulator.h +++ b/dome_key_event_source_simulator/dome_key_event_source_simulator.h @@ -9,7 +9,8 @@ #ifndef DOME_KEY_EVENT_SOURCE_SIMULATOR_H #define DOME_KEY_EVENT_SOURCE_SIMULATOR_H -#import +#import +#import void dkess_press_key(int key, NSEventModifierFlags modifier_flags); -- cgit v1.2.3