diff --git a/addons/godot_xterm/native/src/libgodotxtermnative.cpp b/addons/godot_xterm/native/src/libgodotxtermnative.cpp index 3a4a6f6..0d98612 100644 --- a/addons/godot_xterm/native/src/libgodotxtermnative.cpp +++ b/addons/godot_xterm/native/src/libgodotxtermnative.cpp @@ -1,5 +1,5 @@ #include "terminal.h" -#if defined(__unix__) // Linux and macOS. +#if defined(__unix__) /* Linux and macOS */ && !defined(__EMSCRIPTEN__) #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(); -#if defined(__unix__) +#if defined(__unix__) && !defined(__EMSCRIPTEN__) godot::register_class(); #endif }