mirror of
https://github.com/lihop/godot-xterm.git
synced 2025-05-19 01:15:31 +02:00
Use standard OS macros
As per: https://sourceforge.net/p/predef/wiki/OperatingSystems/
This commit is contained in:
parent
bb8d40df58
commit
caf3bf1910
4 changed files with 10 additions and 10 deletions
|
@ -8,7 +8,7 @@
|
|||
#include <xkbcommon/xkbcommon-keysyms.h>
|
||||
|
||||
// For _populate_key_list(), see below.
|
||||
#if defined(PLATFORM_WINDOWS)
|
||||
#if defined(__WIN32)
|
||||
#include <GlobalConstants.hpp>
|
||||
#endif
|
||||
|
||||
|
@ -26,7 +26,7 @@ void Terminal::_populate_key_list() {
|
|||
// referenced in function "private: static void __cdecl
|
||||
// godot::Terminal::_populate_key_list(void)"` so use the old technique of
|
||||
// getting KeyList values from GlobalConstants header for now.
|
||||
#if defined(PLATFORM_WINDOWS)
|
||||
#if defined(__WIN32)
|
||||
#define GLOBAL_CONSTANT(VAR) GlobalConstants::VAR
|
||||
#else
|
||||
#define GLOBAL_CONSTANT(VAR) get_constant(#VAR)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue