mirror of
https://github.com/lihop/godot-xterm.git
synced 2025-07-04 12:55: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
|
@ -1,5 +1,5 @@
|
|||
#include "terminal.h"
|
||||
#if defined(PLATFORM_LINUX) || defined(PLATFORM_OSX)
|
||||
#if defined(__unix__) // Linux and macOS.
|
||||
#include "pseudoterminal.h"
|
||||
#endif
|
||||
|
||||
|
@ -16,7 +16,7 @@ extern "C" void GDN_EXPORT godot_nativescript_init(void *handle) {
|
|||
godot::Godot::nativescript_init(handle);
|
||||
|
||||
godot::register_tool_class<godot::Terminal>();
|
||||
#if defined(PLATFORM_LINUX) || defined(PLATFORM_OSX)
|
||||
#if defined(__unix__)
|
||||
godot::register_class<godot::Pseudoterminal>();
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue