summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGregory Maxwell <greg@xiph.org>2013-11-24 06:49:01 -0800
committerGregory Maxwell <greg@xiph.org>2013-11-24 06:49:01 -0800
commitf4d2c034a629726cf5978fdcac7f60c0af2e3add (patch)
treebd1feff9cc6faaa4992adaaf8dab52e471a26d8c /include
parent1bf1f51c0a2b4e8bef93a1e949d57b33232b6455 (diff)
downloadopus-f4d2c034a629726cf5978fdcac7f60c0af2e3add.tar.gz
Put custom_encoder_init decl behind CUSTOM_MODES. More softclip tests.
This removes an unused definition warning when compiling without custom modes.
Diffstat (limited to 'include')
-rw-r--r--include/opus_custom.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/opus_custom.h b/include/opus_custom.h
index dcfbcd8a..41f36bf2 100644
--- a/include/opus_custom.h
+++ b/include/opus_custom.h
@@ -140,6 +140,7 @@ OPUS_CUSTOM_EXPORT_STATIC OPUS_WARN_UNUSED_RESULT int opus_custom_encoder_get_si
int channels
) OPUS_ARG_NONNULL(1);
+# ifdef CUSTOM_MODES
/** Initializes a previously allocated encoder state
* The memory pointed to by st must be the size returned by opus_custom_encoder_get_size.
* This is intended for applications which use their own allocator instead of malloc.
@@ -152,12 +153,12 @@ OPUS_CUSTOM_EXPORT_STATIC OPUS_WARN_UNUSED_RESULT int opus_custom_encoder_get_si
* @param [in] channels <tt>int</tt>: Number of channels
* @return OPUS_OK Success or @ref opus_errorcodes
*/
-OPUS_CUSTOM_EXPORT_STATIC int opus_custom_encoder_init(
+OPUS_CUSTOM_EXPORT int opus_custom_encoder_init(
OpusCustomEncoder *st,
const OpusCustomMode *mode,
int channels
) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(2);
-
+# endif
#endif