summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Doan <andy.doan@linaro.org>2012-01-04 22:27:43 +0000
committerBernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>2012-03-29 09:41:13 +0200
commitdc999a079aabf0e6b2501265ef45b540f323d616 (patch)
treeda3c158709dff93f453d47bb18e13bd0252efdde
parentb57e38692beb08d8ad6e0af817e377b5bbd4175c (diff)
downloadbase-dc999a079aabf0e6b2501265ef45b540f323d616.tar.gz
fix build break when using prebuilt toolchain
When doing a build with the prebuilt 4.4 toolchain a duplicate symbol error is hit. This is due to the fact this symbol is really defined system/core/include/system/window.h Change-Id: I9dac8e4f483422a7d42ab0d305ece61197f936b9 Signed-off-by: Andy Doan <andy.doan@linaro.org>
-rw-r--r--native/include/android/native_window.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/native/include/android/native_window.h b/native/include/android/native_window.h
index 2f4f2d33bec9..45caed4918b3 100644
--- a/native/include/android/native_window.h
+++ b/native/include/android/native_window.h
@@ -18,6 +18,7 @@
#define ANDROID_NATIVE_WINDOW_H
#include <android/rect.h>
+#include <system/window.h>
#ifdef __cplusplus
extern "C" {
@@ -32,9 +33,6 @@ enum {
WINDOW_FORMAT_RGB_565 = 4,
};
-struct ANativeWindow;
-typedef struct ANativeWindow ANativeWindow;
-
typedef struct ANativeWindow_Buffer {
// The number of pixels that are show horizontally.
int32_t width;
@@ -51,7 +49,7 @@ typedef struct ANativeWindow_Buffer {
// The actual bits.
void* bits;
-
+
// Do not touch.
uint32_t reserved[6];
} ANativeWindow_Buffer;