aboutsummaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorJohannes Schickel2009-08-24 16:07:46 +0000
committerJohannes Schickel2009-08-24 16:07:46 +0000
commitdd7868acc2512c9761d892e67a4837f4dc38bdc0 (patch)
tree0b5c2c1ca5423f2fce95e420771a547693640377 /sound
parentf7b7b494f95a46808eab570c99d40b2626673b34 (diff)
downloadscummvm-rg350-dd7868acc2512c9761d892e67a4837f4dc38bdc0.tar.gz
scummvm-rg350-dd7868acc2512c9761d892e67a4837f4dc38bdc0.tar.bz2
scummvm-rg350-dd7868acc2512c9761d892e67a4837f4dc38bdc0.zip
- Change shorten.h guard to match the sjis.h guard.
- Also enable shorten code when the build includes support for dynamic engine plugins. svn-id: r43700
Diffstat (limited to 'sound')
-rw-r--r--sound/shorten.h21
1 files changed, 11 insertions, 10 deletions
diff --git a/sound/shorten.h b/sound/shorten.h
index c2a40280d3..bc9f229687 100644
--- a/sound/shorten.h
+++ b/sound/shorten.h
@@ -23,13 +23,15 @@
*
*/
-// The code in this file is currently only used in SAGA2 (in the
-// SAGA engine), so if that engine isn't enabled, we will skip
-// compiling it. If you plan to use this code in another engine,
-// you will have to add the proper define check here.
-// Also please add the define check at the comment after the
-// matching #endif further down this file.
-#if defined(ENABLE_SAGA2)
+// The code in this file is currently only used in SAGA2.
+// So when it is disabled, we will skip compiling it.
+// We also enable this code for ScummVM builds including support
+// for dynamic engine plugins.
+// If you plan to use this code in another engine, you will have
+// to add the proper define check here.
+#if !(defined(ENABLE_SAGA2) || defined(DYNAMIC_MODULES))
+
+#else
#ifndef SOUND_SHORTEN_H
#define SOUND_SHORTEN_H
@@ -48,7 +50,7 @@ class AudioStream;
* start of the audio data, and size, rate and flags contain information
* necessary for playback.
*/
-extern byte *loadShortenFromStream(Common::ReadStream &stream, int &size, int &rate, byte &flags);
+byte *loadShortenFromStream(Common::ReadStream &stream, int &size, int &rate, byte &flags);
/**
* Try to load a Shorten file from the given stream and create an AudioStream
@@ -62,6 +64,5 @@ AudioStream *makeShortenStream(Common::ReadStream &stream);
#endif
-#endif // defined(ENABLE_SAGA2)
-
+#endif // engine and dynamic plugins guard