diff options
author | Pradosh Das <prados@codeaurora.org> | 2015-07-09 10:38:19 +0530 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2015-07-29 03:51:00 -0700 |
commit | 29f5088732151cda71aace63cddeac185c0f35cc (patch) | |
tree | 36c529689c891d60447b85c86f4d183d68fe13f2 | |
parent | af87f18b6112052338e44d4d8db3b81651534e5e (diff) | |
download | android_hardware_qcom_media-29f5088732151cda71aace63cddeac185c0f35cc.tar.gz android_hardware_qcom_media-29f5088732151cda71aace63cddeac185c0f35cc.tar.bz2 android_hardware_qcom_media-29f5088732151cda71aace63cddeac185c0f35cc.zip |
mm-video-v4l2: Fix compilation issues due to C++11
Add necessary include files and fix compilation errors.
Change-Id: I05d3f9d514ddb212f0a8cd67a92c74299b14bfdb
-rw-r--r-- | libc2dcolorconvert/C2DColorConverter.h | 2 | ||||
-rw-r--r-- | mm-video-v4l2/vidc/venc/test/venc_test.cpp | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/libc2dcolorconvert/C2DColorConverter.h b/libc2dcolorconvert/C2DColorConverter.h index 0c84fad6..7e086737 100644 --- a/libc2dcolorconvert/C2DColorConverter.h +++ b/libc2dcolorconvert/C2DColorConverter.h @@ -33,6 +33,8 @@ #include <c2d2.h> #include <ColorConverter.h> #include <sys/types.h> +#include <string.h> +#include <errno.h> typedef C2D_STATUS (*LINK_c2dCreateSurface)( uint32 *surface_id, uint32 surface_bits, diff --git a/mm-video-v4l2/vidc/venc/test/venc_test.cpp b/mm-video-v4l2/vidc/venc/test/venc_test.cpp index f33b09eb..6abe9676 100644 --- a/mm-video-v4l2/vidc/venc/test/venc_test.cpp +++ b/mm-video-v4l2/vidc/venc/test/venc_test.cpp @@ -94,12 +94,12 @@ REFERENCES #else #ifdef TEST_LOG -#define D(fmt, ...) fprintf(stderr, "venc_test Debug %s::%d "fmt"\n", \ +#define D(fmt, ...) fprintf(stderr, "venc_test Debug %s::%d " fmt "\n", \ __FUNCTION__, __LINE__, \ ## __VA_ARGS__) /// Error message macro -#define E(fmt, ...) fprintf(stderr, "venc_test Error %s::%d "fmt"\n", \ +#define E(fmt, ...) fprintf(stderr, "venc_test Error %s::%d " fmt "\n", \ __FUNCTION__, __LINE__, \ ## __VA_ARGS__) #else |