Support macOS 10.8-10.11 SDKs

Adapted from https://github.com/macports/macports-ports/pull/13437
This commit is contained in:
Evan Miller 2021-12-29 10:31:08 -05:00 committed by Pentarctagon
parent 23cb582d5c
commit 299550113a
No known key found for this signature in database
GPG key ID: 9456BC54A21DBFA0

View file

@ -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;