From 0579dca6a5fae625efbbfe3b31167d855c8f966d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 15 Jul 2022 07:42:23 -0400 Subject: Switch to meson build system --- src/jalv_console.c | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to 'src/jalv_console.c') diff --git a/src/jalv_console.c b/src/jalv_console.c index ebb9164..5c129ff 100644 --- a/src/jalv_console.c +++ b/src/jalv_console.c @@ -1,11 +1,6 @@ // Copyright 2007-2022 David Robillard // SPDX-License-Identifier: ISC -#define _POSIX_C_SOURCE 200809L -#define _XOPEN_SOURCE 600 -#define _BSD_SOURCE 1 -#define _DEFAULT_SOURCE 1 - #include "control.h" #include "frontend.h" #include "jalv_config.h" @@ -18,10 +13,13 @@ #include "lilv/lilv.h" #include "lv2/ui/ui.h" -#include "suil/suil.h" #include "zix/common.h" #include "zix/sem.h" +#if USE_SUIL +# include "suil/suil.h" +#endif + #ifdef _WIN32 # include #else @@ -74,10 +72,18 @@ jalv_ui_port_event(Jalv* jalv, uint32_t protocol, const void* buffer) { +#if USE_SUIL if (jalv->ui_instance) { suil_instance_port_event( jalv->ui_instance, port_index, buffer_size, protocol, buffer); } +#else + (void)jalv; + (void)port_index; + (void)buffer_size; + (void)protocol; + (void)buffer; +#endif } int @@ -247,7 +253,7 @@ jalv_frontend_discover(Jalv* jalv) static bool jalv_run_custom_ui(Jalv* jalv) { -#ifdef HAVE_SUIL +#if USE_SUIL const LV2UI_Idle_Interface* idle_iface = NULL; const LV2UI_Show_Interface* show_iface = NULL; if (jalv->ui && jalv->opts.show_ui) { @@ -278,6 +284,8 @@ jalv_run_custom_ui(Jalv* jalv) show_iface->hide(suil_instance_get_handle(jalv->ui_instance)); return true; } +#else + (void)jalv; #endif return false; -- cgit v1.2.1