aboutsummaryrefslogtreecommitdiffstats
path: root/src/jalv_console.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-07-15 07:42:23 -0400
committerDavid Robillard <d@drobilla.net>2022-08-17 13:50:43 -0400
commit0579dca6a5fae625efbbfe3b31167d855c8f966d (patch)
treebcf69a28dfb65f941e9540986a693fd4c612eb50 /src/jalv_console.c
parente1bcda7bd5ed51bf60157605bb087d2312e15e59 (diff)
downloadjalv-0579dca6a5fae625efbbfe3b31167d855c8f966d.tar.gz
jalv-0579dca6a5fae625efbbfe3b31167d855c8f966d.tar.bz2
jalv-0579dca6a5fae625efbbfe3b31167d855c8f966d.zip
Switch to meson build system
Diffstat (limited to 'src/jalv_console.c')
-rw-r--r--src/jalv_console.c22
1 files changed, 15 insertions, 7 deletions
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 <d@drobilla.net>
// 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 <synchapi.h>
#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;