From d0e65433d0ce8ff3ec798ae3b68caf209885fb70 Mon Sep 17 00:00:00 2001 From: Andrew Hsieh Date: Mon, 16 Apr 2012 14:17:41 +0800 Subject: [PATCH] Fixed compilation error #include Fixed compilation error when header in #include is included alone. Fix for rect.h already exists in $ANDROID/frameworks/native/include/android Change-Id: I7c49e044507581c5ad591f26f99cda6870b411c5 --- ndk/platforms/android-9/include/android/asset_manager.h | 2 ++ ndk/platforms/android-9/include/android/rect.h | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/ndk/platforms/android-9/include/android/asset_manager.h b/ndk/platforms/android-9/include/android/asset_manager.h index 4fa0ef3a3..57dd7cbd4 100644 --- a/ndk/platforms/android-9/include/android/asset_manager.h +++ b/ndk/platforms/android-9/include/android/asset_manager.h @@ -18,6 +18,8 @@ #ifndef ANDROID_ASSET_MANAGER_H #define ANDROID_ASSET_MANAGER_H +#include + #ifdef __cplusplus extern "C" { #endif diff --git a/ndk/platforms/android-9/include/android/rect.h b/ndk/platforms/android-9/include/android/rect.h index 3e81f531d..bcd42a99e 100644 --- a/ndk/platforms/android-9/include/android/rect.h +++ b/ndk/platforms/android-9/include/android/rect.h @@ -18,11 +18,16 @@ #ifndef ANDROID_RECT_H #define ANDROID_RECT_H +#include + #ifdef __cplusplus extern "C" { #endif typedef struct ARect { +#ifdef __cplusplus + typedef int32_t value_type; +#endif int32_t left; int32_t top; int32_t right;