aboutsummaryrefslogtreecommitdiff
path: root/src/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/command.c')
-rw-r--r--src/command.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/command.c b/src/command.c
index 86d216a7..9cb0e69b 100644
--- a/src/command.c
+++ b/src/command.c
@@ -62,7 +62,7 @@
#include "song.h"
#include "song_print.h"
-#ifdef ENABLE_SQLITE
+#if CONFIG_LIBSQLITE3
#include "sticker.h"
#include "sticker_print.h"
#include "song_sticker.h"
@@ -1655,7 +1655,7 @@ handle_idle(struct client *client,
return 1;
}
-#ifdef ENABLE_SQLITE
+#if CONFIG_LIBSQLITE3
struct sticker_song_find_data {
struct client *client;
const char *name;
@@ -2065,7 +2065,7 @@ static const struct command commands[] = {
{ "single", PERMISSION_CONTROL, 1, 1, handle_single },
{ "stats", PERMISSION_READ, 0, 0, handle_stats },
{ "status", PERMISSION_READ, 0, 0, handle_status },
-#ifdef ENABLE_SQLITE
+#if CONFIG_LIBSQLITE3
{ "sticker", PERMISSION_ADMIN, 3, -1, handle_sticker },
#endif
{ "stop", PERMISSION_CONTROL, 0, 0, handle_stop },
@@ -2083,7 +2083,7 @@ static const unsigned num_commands = sizeof(commands) / sizeof(commands[0]);
static bool
command_available(G_GNUC_UNUSED const struct command *cmd)
{
-#ifdef ENABLE_SQLITE
+#if CONFIG_LIBSQLITE3
if (strcmp(cmd->cmd, "sticker") == 0)
return sticker_enabled();
#endif