diff options
| author | Teddy Wing | 2018-10-15 20:16:02 +0200 |
|---|---|---|
| committer | Teddy Wing | 2018-10-15 20:16:02 +0200 |
| commit | 7c534c3c3d73666d24f7ba858f8ee9314ffa2707 (patch) | |
| tree | db4c2e9d60d35d90257c1d386f11d09be4364fe4 | |
| parent | c089d8cc157fc4298b0e2bca0f8665f7ffe5a8c7 (diff) | |
| download | dome_key_event_source_simulator-7c534c3c3d73666d24f7ba858f8ee9314ffa2707.tar.bz2 | |
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`.
| -rw-r--r-- | dome_key_event_source_simulator/dome_key_event_source_simulator.h | 3 |
1 files changed, 2 insertions, 1 deletions
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 <Cocoa/Cocoa.h> +#import <AppKit/AppKit.h> +#import <CoreGraphics/CoreGraphics.h> void dkess_press_key(int key, NSEventModifierFlags modifier_flags); |
