From dc88d1f8f0142f366346ccdba29b40c22fc68405 Mon Sep 17 00:00:00 2001 From: Pascal Thomet Date: Thu, 18 Jan 2024 12:28:34 +0100 Subject: [PATCH] Fix compil if not IMGUI_TEST_ENGINE_WITH_PYTHON_GIL --- src/hello_imgui/internal/backend_impls/abstract_runner.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hello_imgui/internal/backend_impls/abstract_runner.cpp b/src/hello_imgui/internal/backend_impls/abstract_runner.cpp index 0bb30838..d8449357 100644 --- a/src/hello_imgui/internal/backend_impls/abstract_runner.cpp +++ b/src/hello_imgui/internal/backend_impls/abstract_runner.cpp @@ -12,12 +12,12 @@ #include "imgui_internal.h" #include "hello_imgui_test_engine_integration/test_engine_integration.h" -#include "imgui_test_engine/imgui_te_python_gil.h" #ifdef IMGUI_TEST_ENGINE_WITH_PYTHON_GIL +#include "imgui_test_engine/imgui_te_python_gil.h" #define SCOPED_RELEASE_GIL_ON_MAIN_THREAD ImGuiTestEnginePythonGIL::ReleaseGilOnMainThread_Scoped _gilRelease #else -#define SCOPED_RELEASE_GIL_ON_MAIN_THREAD (void) +#define SCOPED_RELEASE_GIL_ON_MAIN_THREAD #endif #include