From c03474ea5ad656e0f2f89a8866a8ac651bd6bc76 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sun, 5 May 2024 21:22:35 +0200 Subject: Update common: make remotecontrol optional --- lib/Globals.cpp | 2 ++ lib/RemoteControl.h | 2 ++ 2 files changed, 4 insertions(+) (limited to 'lib') diff --git a/lib/Globals.cpp b/lib/Globals.cpp index 6be26ec..6bd38fb 100644 --- a/lib/Globals.cpp +++ b/lib/Globals.cpp @@ -32,5 +32,7 @@ // the RC needs logging, and needs to be initialised later. Logger etiLog; +#if ENABLE_REMOTECONTROL RemoteControllers rcs; +#endif // ENABLE_REMOTECONTROL diff --git a/lib/RemoteControl.h b/lib/RemoteControl.h index 26f30d9..7dd763d 100644 --- a/lib/RemoteControl.h +++ b/lib/RemoteControl.h @@ -31,6 +31,8 @@ # include "config.h" #endif +#define ENABLE_REMOTECONTROL 1 + #if defined(HAVE_ZEROMQ) # include "zmq.hpp" #endif -- cgit v1.2.3