From 2e2a4be3b286a1d21f8a9cef3177d768b1abc9e8 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 14 Jun 2022 17:12:30 +0200 Subject: [PATCH] Fix windows debug builds (SIGUSR1 is POSIX only) --- gtk2_ardour/main.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gtk2_ardour/main.cc b/gtk2_ardour/main.cc index 7284a57871..cd3d9a68dc 100644 --- a/gtk2_ardour/main.cc +++ b/gtk2_ardour/main.cc @@ -173,7 +173,7 @@ Click OK to exit %1."), PROGRAM_NAME, AudioEngine::instance()->current_backend_n return false; /* do not call again */ } -#ifndef NDEBUG +#if !(defined NDEBUG || defined PLATFORM_WINDOWS) static void sigusr1_handler (int /* signal */) { @@ -320,16 +320,16 @@ int main (int argc, char *argv[]) exit (EXIT_FAILURE); } +#if !(defined NDEBUG || defined PLATFORM_WINDOWS) { -#ifndef NDEBUG const char * adf; if ((adf = g_getenv ("ARDOUR_DEBUG_FLAGS"))) { if (!g_getenv ("ARDOUR_DEBUG_ON_SIGUSR1")) { PBD::parse_debug_options (adf); } } -#endif /* NDEBUG */ } +#endif cout << PROGRAM_NAME << VERSIONSTRING @@ -417,7 +417,7 @@ int main (int argc, char *argv[]) } #endif -#ifndef NDEBUG +#if !(defined NDEBUG || defined PLATFORM_WINDOWS) if (g_getenv ("ARDOUR_DEBUG_ON_SIGUSR1")) { if (::signal (SIGUSR1, sigusr1_handler)) { cerr << _("Cannot install SIGUSR1 error handler") << endl;