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 33f6e7a11c
commit 71ebc1ced7

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;