macOS: Fix template_debug build after #105884

This commit is contained in:
Rémi Verschelde
2025-05-13 12:42:13 +02:00
parent c0ebba60de
commit 3e2c064302
2 changed files with 6 additions and 5 deletions

View File

@ -460,7 +460,7 @@ public:
virtual bool get_swap_cancel_ok() override;
virtual void enable_for_stealing_focus(OS::ProcessID pid) override;
#ifdef DEBUG_ENABLED
#ifdef TOOLS_ENABLED
Error embed_process_update(WindowID p_window, const EmbeddedProcessMacOS *p_process);
#endif
virtual Error request_close_embedded_process(OS::ProcessID p_pid) override;

View File

@ -30,9 +30,6 @@
#import "display_server_macos.h"
#ifdef DEBUG_ENABLED
#import "editor/embedded_process_macos.h"
#endif
#import "godot_application.h"
#import "godot_application_delegate.h"
#import "godot_button_view.h"
@ -56,6 +53,10 @@
#include "main/main.h"
#include "scene/resources/image_texture.h"
#ifdef TOOLS_ENABLED
#import "editor/embedded_process_macos.h"
#endif
#include <AppKit/AppKit.h>
#include "servers/rendering/dummy/rasterizer_dummy.h"
@ -3283,7 +3284,7 @@ void DisplayServerMacOS::enable_for_stealing_focus(OS::ProcessID pid) {
ERR_FAIL_V(m_retval); \
}
#ifdef DEBUG_ENABLED
#ifdef TOOLS_ENABLED
Error DisplayServerMacOS::embed_process_update(WindowID p_window, const EmbeddedProcessMacOS *p_process) {
_THREAD_SAFE_METHOD_