Support macOS 10.8-10.11 SDKs
Adapted from https://github.com/macports/macports-ports/pull/13437
This commit is contained in:
parent
23cb582d5c
commit
299550113a
1 changed files with 6 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue