summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2016-09-27 20:40:53 +0000
committerandroid-build-merger <android-build-merger@google.com>2016-09-27 20:40:53 +0000
commit9064f4e0a3d89f77af4e1582adca0ebe23761003 (patch)
tree24b4d5f517c401df3ce21c5764e2b4ec91d7c4fb
parent7081625840171d18f7a4bf18324c4e99c5eb6489 (diff)
parente8f7c3f97da837616835f37e4ca73d242404120a (diff)
downloadsvox-9064f4e0a3d89f77af4e1582adca0ebe23761003.tar.gz
Merge "Add __ANDROID_API__ checks to NDK header." am: 3f3ab38ddc am: 8c96144cf0 am: d77f7c26c2
am: e8f7c3f97d Change-Id: Iff5bb284751136ae2e640d894ecba14151dc6889
-rw-r--r--pico/compat/jni/tts.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/pico/compat/jni/tts.h b/pico/compat/jni/tts.h
index 9e05c9d..3e4f2b9 100644
--- a/pico/compat/jni/tts.h
+++ b/pico/compat/jni/tts.h
@@ -16,6 +16,8 @@
#ifndef ANDROID_TTS_H
#define ANDROID_TTS_H
+#include <sys/cdefs.h>
+
// This header defines the interface used by the Android platform
// to access Text-To-Speech functionality in shared libraries that implement
// speech synthesis and the management of resources associated with the
@@ -85,6 +87,7 @@ typedef struct {
android_tts_engine_funcs_t *funcs;
} android_tts_engine_t;
+#if __ANDROID_API__ >= 13
/* This function must be located in the TTS Engine shared library
* and must return the address of an android_tts_engine_t library.
*/
@@ -94,6 +97,7 @@ extern android_tts_engine_t *android_getTtsEngine();
* This should return the same thing as android_getTtsEngine.
*/
extern "C" android_tts_engine_t *getTtsEngine();
+#endif /* __ANDROID_API__ >= 13 */
// A callback type used to notify the framework of new synthetized
// audio samples, status will be SYNTH_DONE for the last sample of