diff options
author | Amit Pundir <amit.pundir@linaro.org> | 2015-02-04 15:08:58 +0530 |
---|---|---|
committer | Amit Pundir <amit.pundir@linaro.org> | 2015-02-04 15:11:24 +0530 |
commit | 2091302adc5a74509f30ba6d1a69bdf6f9f3a6d6 (patch) | |
tree | 81a9fec0200cff6b7f09ecfd315c2e4172776b56 | |
parent | 88600642dce330754b2d7af24d5be738ddefe16a (diff) | |
download | linaro-android-userspace-test-2091302adc5a74509f30ba6d1a69bdf6f9f3a6d6.tar.gz |
amrnbdec_test: fix AOSP master build error
Add missing header file for malloc and free function declarations,
otherwise we run into following build error on AOSP master snapshot:
-----8<-----
target thumb C++: libstagefright_amrnbdec_test_linaro <= external/linaro-android-userspace-test/speech-codec/amrnb/amrnbdec_test.cpp
external/linaro-android-userspace-test/speech-codec/amrnb/amrnbdec_test.cpp: In function 'int main(int, char**)':
external/linaro-android-userspace-test/speech-codec/amrnb/amrnbdec_test.cpp:93:45: error: 'malloc' was not declared in this scope
void *inputBuf = malloc(kInputBufferSize);
^
external/linaro-android-userspace-test/speech-codec/amrnb/amrnbdec_test.cpp:142:18: error: 'free' was not declared in this scope
free(inputBuf);
^
make: *** [out/target/product/juno/obj_arm/EXECUTABLES/libstagefright_amrnbdec_test_linaro_intermediates/amrnbdec_test.o] Error 1
make: *** Waiting for unfinished jobs....
----->8-----
Change-Id: Ie4a6a91845141087523fa5bf3a4222a92ace8acd
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
-rw-r--r-- | speech-codec/amrnb/amrnbdec_test.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/speech-codec/amrnb/amrnbdec_test.cpp b/speech-codec/amrnb/amrnbdec_test.cpp index 521fe2b..fc89c24 100644 --- a/speech-codec/amrnb/amrnbdec_test.cpp +++ b/speech-codec/amrnb/amrnbdec_test.cpp @@ -28,6 +28,7 @@ #include <stdio.h> #include <stdint.h> +#include <stdlib.h> #include <string.h> #include <assert.h> |