commit | e6c01760711e0708cee434914e28c5b5c9b39c5c | [log] [tgz] |
---|---|---|
author | Andrew Hsieh <andrewhsieh@google.com> | Mon Apr 16 14:17:41 2012 +0800 |
committer | Andrew Hsieh <andrewhsieh@google.com> | Mon Apr 16 14:17:41 2012 +0800 |
tree | 880f4ab3a7f6ab9b01f5c5b96c59f1d42b33675c | |
parent | 31446e98dd8cda999d17c9cc3f9c42032e02a4d9 [diff] |
Fixed compilation error #include <android/*h> Fixed compilation error when header in #include <android/*h> is included alone. Fix for rect.h already exists in $ANDROID/frameworks/native/include/android Change-Id: I7c49e044507581c5ad591f26f99cda6870b411c5
diff --git a/ndk/platforms/android-9/include/android/asset_manager.h b/ndk/platforms/android-9/include/android/asset_manager.h index 4fa0ef3..57dd7cb 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 <sys/types.h> + #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 3e81f53..bcd42a9 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 <stdint.h> + #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;