windows (msys2) compile fix

This commit is contained in:
2022-09-18 19:43:06 +08:00
parent 857aee0284
commit 24cd4d6623
2 changed files with 7 additions and 7 deletions

View File

@@ -2,7 +2,7 @@
#include <stdio.h> #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 // http://forum.shelek.ru/index.php/topic,9792.0.html
#include <stdlib.h> #include <stdlib.h>
@@ -132,7 +132,7 @@ keycode()
} }
#endif #endif
#if defined(__APPLE__) #if defined(__APPLE__) || defined(__MSYS__)
// http://www.ai.rug.nl/vakinformatie/pas/content/Aria-manual/ArKeyHandler_8cpp-source.html // http://www.ai.rug.nl/vakinformatie/pas/content/Aria-manual/ArKeyHandler_8cpp-source.html

View File

@@ -14,13 +14,13 @@ test_keycodes();
#if defined(_WIN32) #if defined(_WIN32)
#define KEY_BS 8 #define KEY_BS 8
#define KEY_ENTER 13 #define KEY_ENTER 13
#elif defined(__linux__) || defined(__APPLE__) #elif defined(__linux__) || defined(__APPLE__) || defined(__MSYS__)
#define KEY_BS 127 #define KEY_BS 127
#define KEY_ENTER 10 #define KEY_ENTER 10
#endif #endif