aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-04 23:45:55 +0100
committerMax Kellermann <max@duempel.org>2013-01-04 23:50:58 +0100
commit44d260f9116788a6a63242aabdd1434ab22edff0 (patch)
tree59140f647d49668e7532a9d40e45090971da3e03 /src
parent07249fc395d1f211c12df8bb6cf8b0212b241206 (diff)
replay_gain_*: convert to C++
Diffstat (limited to 'src')
-rw-r--r--src/ReplayGainConfig.cxx (renamed from src/replay_gain_config.c)6
-rw-r--r--src/ReplayGainInfo.cxx (renamed from src/replay_gain_info.c)5
2 files changed, 9 insertions, 2 deletions
diff --git a/src/replay_gain_config.c b/src/ReplayGainConfig.cxx
index deaf2b5f..4d3e2f29 100644
--- a/src/replay_gain_config.c
+++ b/src/ReplayGainConfig.cxx
@@ -18,10 +18,14 @@
*/
#include "config.h"
+
+extern "C" {
#include "replay_gain_config.h"
-#include "Playlist.hxx"
#include "conf.h"
#include "idle.h"
+}
+
+#include "Playlist.hxx"
#include "mpd_error.h"
#include <glib.h>
diff --git a/src/replay_gain_info.c b/src/ReplayGainInfo.cxx
index 1f09e7a1..5e5e4ab4 100644
--- a/src/replay_gain_info.c
+++ b/src/ReplayGainInfo.cxx
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003-2011 The Music Player Daemon Project
+ * Copyright (C) 2003-2013 The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
@@ -18,7 +18,10 @@
*/
#include "config.h"
+
+extern "C" {
#include "replay_gain_info.h"
+}
float
replay_gain_tuple_scale(const struct replay_gain_tuple *tuple, float preamp, float missing_preamp, bool peak_limit)