• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

frameworks/base


Commit MetaInfo

Revisioneb0e70d24744d623f960b3cc188e791351caacc0 (tree)
Time2009-07-16 17:21:01
AuthorChih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Log Message

fix compiling error

Change Summary

Incremental Difference

--- a/camera/libcameraservice/Android.mk
+++ b/camera/libcameraservice/Android.mk
@@ -10,6 +10,8 @@ LOCAL_SRC_FILES:= \
1010 CameraHardware.cpp \
1111 V4L2Camera.cpp
1212
13+LOCAL_CFLAGS += -Iexternal/jpeg
14+
1315 LOCAL_MODULE:= libcamera
1416
1517 LOCAL_SHARED_LIBRARIES:= \
--- a/camera/libcameraservice/CameraHardware.h
+++ b/camera/libcameraservice/CameraHardware.h
@@ -25,7 +25,6 @@
2525 #include <utils/threads.h>
2626
2727 #include <sys/ioctl.h>
28-#include <jpeglib.h>
2928 #include "V4L2Camera.h"
3029
3130 namespace android {
--- a/camera/libcameraservice/V4L2Camera.cpp
+++ b/camera/libcameraservice/V4L2Camera.cpp
@@ -21,10 +21,12 @@
2121
2222 #include <linux/videodev.h>
2323
24-#include <jpeglib.h>
25-
2624 #include "V4L2Camera.h"
2725
26+extern "C" { /* Android jpeglib.h missed extern "C" */
27+#include <jpeglib.h>
28+}
29+
2830 namespace android {
2931
3032 V4L2Camera::V4L2Camera ()