aboutsummaryrefslogtreecommitdiff
path: root/src/decoder
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-07 09:38:02 +0100
committerMax Kellermann <max@duempel.org>2013-01-07 10:07:40 +0100
commit975370c084c8d679ff2cc2fcee48326b1dbcbf2e (patch)
treea7df707eb1712c1921367862b35c6265c80bd5a5 /src/decoder
parentc3c776bc6aa9f550a832ff3a2ace4f7980f6a791 (diff)
decoder_api.h, ...: add "extern C"
Diffstat (limited to 'src/decoder')
-rw-r--r--src/decoder/AdPlugDecoderPlugin.cxx2
-rw-r--r--src/decoder/FLACCommon.hxx2
-rw-r--r--src/decoder/FLACIOHandle.hxx3
-rw-r--r--src/decoder/FLACInput.cxx5
-rw-r--r--src/decoder/FLACMetaData.cxx4
-rw-r--r--src/decoder/OggUtil.cxx3
-rw-r--r--src/decoder/OpusDecoderPlugin.cxx2
-rw-r--r--src/decoder/sidplay_decoder_plugin.cxx2
8 files changed, 7 insertions, 16 deletions
diff --git a/src/decoder/AdPlugDecoderPlugin.cxx b/src/decoder/AdPlugDecoderPlugin.cxx
index b3b7f1d7..6d08fab5 100644
--- a/src/decoder/AdPlugDecoderPlugin.cxx
+++ b/src/decoder/AdPlugDecoderPlugin.cxx
@@ -20,9 +20,9 @@
#include "config.h"
#include "AdPlugDecoderPlugin.h"
#include "tag_handler.h"
+#include "decoder_api.h"
extern "C" {
-#include "decoder_api.h"
#include "audio_check.h"
}
diff --git a/src/decoder/FLACCommon.hxx b/src/decoder/FLACCommon.hxx
index e9b45976..b80372bb 100644
--- a/src/decoder/FLACCommon.hxx
+++ b/src/decoder/FLACCommon.hxx
@@ -25,9 +25,9 @@
#define MPD_FLAC_COMMON_HXX
#include "FLACInput.hxx"
+#include "decoder_api.h"
extern "C" {
-#include "decoder_api.h"
#include "pcm_buffer.h"
}
diff --git a/src/decoder/FLACIOHandle.hxx b/src/decoder/FLACIOHandle.hxx
index 193a15ef..0c2c2477 100644
--- a/src/decoder/FLACIOHandle.hxx
+++ b/src/decoder/FLACIOHandle.hxx
@@ -21,10 +21,7 @@
#define MPD_FLAC_IO_HANDLE_HXX
#include "gcc.h"
-
-extern "C" {
#include "input_stream.h"
-}
#include <FLAC/callback.h>
diff --git a/src/decoder/FLACInput.cxx b/src/decoder/FLACInput.cxx
index 0383ac4f..99f321cd 100644
--- a/src/decoder/FLACInput.cxx
+++ b/src/decoder/FLACInput.cxx
@@ -19,12 +19,9 @@
#include "config.h"
#include "FLACInput.hxx"
+#include "decoder_api.h"
#include "gcc.h"
-
-extern "C" {
#include "input_stream.h"
-#include "decoder_api.h"
-}
FLAC__StreamDecoderReadStatus
FLACInput::Read(FLAC__byte buffer[], size_t *bytes)
diff --git a/src/decoder/FLACMetaData.cxx b/src/decoder/FLACMetaData.cxx
index 561c1591..8273a230 100644
--- a/src/decoder/FLACMetaData.cxx
+++ b/src/decoder/FLACMetaData.cxx
@@ -22,12 +22,12 @@
extern "C" {
#include "XiphTags.h"
-#include "replay_gain_info.h"
-#include "tag.h"
}
+#include "tag.h"
#include "tag_handler.h"
#include "tag_table.h"
+#include "replay_gain_info.h"
#include <glib.h>
diff --git a/src/decoder/OggUtil.cxx b/src/decoder/OggUtil.cxx
index 99f73d48..00dae288 100644
--- a/src/decoder/OggUtil.cxx
+++ b/src/decoder/OggUtil.cxx
@@ -19,10 +19,7 @@
#include "config.h"
#include "OggUtil.hxx"
-
-extern "C" {
#include "decoder_api.h"
-}
bool
OggFeed(ogg_sync_state &oy, struct decoder *decoder,
diff --git a/src/decoder/OpusDecoderPlugin.cxx b/src/decoder/OpusDecoderPlugin.cxx
index 35e368ca..c87e60a1 100644
--- a/src/decoder/OpusDecoderPlugin.cxx
+++ b/src/decoder/OpusDecoderPlugin.cxx
@@ -22,10 +22,10 @@
#include "OpusHead.hxx"
#include "OpusTags.hxx"
#include "OggUtil.hxx"
+#include "decoder_api.h"
extern "C" {
#include "ogg_codec.h"
-#include "decoder_api.h"
}
#include "audio_check.h"
diff --git a/src/decoder/sidplay_decoder_plugin.cxx b/src/decoder/sidplay_decoder_plugin.cxx
index de2e599e..175d2ee7 100644
--- a/src/decoder/sidplay_decoder_plugin.cxx
+++ b/src/decoder/sidplay_decoder_plugin.cxx
@@ -18,9 +18,9 @@
*/
#include "config.h"
+#include "../decoder_api.h"
extern "C" {
-#include "../decoder_api.h"
#include "tag_handler.h"
}