frameworks/base
Revision | eb0e70d24744d623f960b3cc188e791351caacc0 (tree) |
---|---|
Time | 2009-07-16 17:21:01 |
Author | Chih-Wei Huang <cwhuang@linu...> |
Commiter | Chih-Wei Huang |
fix compiling error
@@ -10,6 +10,8 @@ LOCAL_SRC_FILES:= \ | ||
10 | 10 | CameraHardware.cpp \ |
11 | 11 | V4L2Camera.cpp |
12 | 12 | |
13 | +LOCAL_CFLAGS += -Iexternal/jpeg | |
14 | + | |
13 | 15 | LOCAL_MODULE:= libcamera |
14 | 16 | |
15 | 17 | LOCAL_SHARED_LIBRARIES:= \ |
@@ -25,7 +25,6 @@ | ||
25 | 25 | #include <utils/threads.h> |
26 | 26 | |
27 | 27 | #include <sys/ioctl.h> |
28 | -#include <jpeglib.h> | |
29 | 28 | #include "V4L2Camera.h" |
30 | 29 | |
31 | 30 | namespace android { |
@@ -21,10 +21,12 @@ | ||
21 | 21 | |
22 | 22 | #include <linux/videodev.h> |
23 | 23 | |
24 | -#include <jpeglib.h> | |
25 | - | |
26 | 24 | #include "V4L2Camera.h" |
27 | 25 | |
26 | +extern "C" { /* Android jpeglib.h missed extern "C" */ | |
27 | +#include <jpeglib.h> | |
28 | +} | |
29 | + | |
28 | 30 | namespace android { |
29 | 31 | |
30 | 32 | V4L2Camera::V4L2Camera () |