summaryrefslogtreecommitdiff
path: root/src/print_volume.c
diff options
context:
space:
mode:
authorMichael Stapelberg <stapelberg@users.noreply.github.com>2019-01-23 08:56:40 +0100
committerGitHub <noreply@github.com>2019-01-23 08:56:40 +0100
commita57cdc84e2f38ea99fd464d8b5b6446c769cc545 (patch)
tree48ba736e56b8212d2c3e47cce83864d798e2fa46 /src/print_volume.c
parent7efbeeaf6ce9232f7479f76c1c79ff73c0db49e4 (diff)
Switch to autotools (#316)
Diffstat (limited to 'src/print_volume.c')
-rw-r--r--src/print_volume.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/print_volume.c b/src/print_volume.c
index 1d81e13..91e8ce2 100644
--- a/src/print_volume.c
+++ b/src/print_volume.c
@@ -1,4 +1,5 @@
// vim:ts=4:sw=4:expandtab
+#include <config.h>
#include <time.h>
#include <string.h>
#include <stdlib.h>
@@ -8,7 +9,7 @@
#include <yajl/yajl_gen.h>
#include <yajl/yajl_version.h>
-#ifdef LINUX
+#ifdef __linux__
#include <alsa/asoundlib.h>
#include <alloca.h>
#include <math.h>
@@ -147,7 +148,7 @@ void print_volume(yajl_gen json_gen, char *buffer, const char *fmt, const char *
* proceed to ALSA / OSS */
#endif
-#ifdef LINUX
+#ifdef __linux__
const long MAX_LINEAR_DB_SCALE = 24;
int err;
snd_mixer_t *m;