mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-27 03:26:04 +00:00
Support macOS 10.8-10.11 SDKs
Adapted from https://github.com/macports/macports-ports/pull/13437
This commit is contained in:
parent
33f6e7a11c
commit
71ebc1ced7
@ -22,6 +22,12 @@
|
||||
#import "SDLMain.h"
|
||||
#include <vector>
|
||||
|
||||
#if MAC_OS_X_VERSION_MAX_ALLOWED < 101200
|
||||
#define NSEventTypeKeyDown NSKeyDown
|
||||
#define NSEventTypeKeyUp NSKeyUp
|
||||
#define NSEventModifierFlagCommand NSCommandKeyMask
|
||||
#endif
|
||||
|
||||
extern "C" int wesnoth_main(int argc, char **argv);
|
||||
static std::vector<char*> gArgs;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user