windows (msys2) compile fix
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#if defined(__linux__) || defined(__APPLE__)
|
||||
#if defined(__linux__) || defined(__APPLE__) || defined(__MSYS__)
|
||||
// http://forum.shelek.ru/index.php/topic,9792.0.html
|
||||
|
||||
#include <stdlib.h>
|
||||
@@ -132,7 +132,7 @@ keycode()
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(__APPLE__)
|
||||
#if defined(__APPLE__) || defined(__MSYS__)
|
||||
|
||||
// http://www.ai.rug.nl/vakinformatie/pas/content/Aria-manual/ArKeyHandler_8cpp-source.html
|
||||
|
||||
|
||||
@@ -14,13 +14,13 @@ test_keycodes();
|
||||
|
||||
#if defined(_WIN32)
|
||||
|
||||
#define KEY_BS 8
|
||||
#define KEY_ENTER 13
|
||||
#define KEY_BS 8
|
||||
#define KEY_ENTER 13
|
||||
|
||||
#elif defined(__linux__) || defined(__APPLE__)
|
||||
#elif defined(__linux__) || defined(__APPLE__) || defined(__MSYS__)
|
||||
|
||||
#define KEY_BS 127
|
||||
#define KEY_ENTER 10
|
||||
#define KEY_BS 127
|
||||
#define KEY_ENTER 10
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user