diff options
| author | Colin Cross <ccross@android.com> | 2013-07-23 19:58:03 -0700 |
|---|---|---|
| committer | Colin Cross <ccross@android.com> | 2013-07-23 19:58:03 -0700 |
| commit | 42cf2b5945c6e7cefc84b1146ba5057faae91322 (patch) | |
| tree | 26d25e791b701a2de54017fedb3dabdad38ea591 /include/system | |
| parent | 511f9efff726c82a1f6a53a11cb39c8513fb0c4f (diff) | |
| download | system_core-42cf2b5945c6e7cefc84b1146ba5057faae91322.zip system_core-42cf2b5945c6e7cefc84b1146ba5057faae91322.tar.gz system_core-42cf2b5945c6e7cefc84b1146ba5057faae91322.tar.bz2 | |
fix windows build
thread_defs.h gets included by the windows host libandroidfw build,
which does not have sys/cdefs.h or BEGIN_DECLS. Switch to using
extern "C" manually.
Change-Id: I363e6f2d3a64c5efeff54049a2e5dab080fd4715
Diffstat (limited to 'include/system')
| -rw-r--r-- | include/system/thread_defs.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/system/thread_defs.h b/include/system/thread_defs.h index 30fe564..f4d6a57 100644 --- a/include/system/thread_defs.h +++ b/include/system/thread_defs.h @@ -17,10 +17,11 @@ #ifndef ANDROID_THREAD_DEFS_H #define ANDROID_THREAD_DEFS_H -#include <sys/cdefs.h> #include "graphics.h" -__BEGIN_DECLS +#if defined(__cplusplus) +extern "C" { +#endif enum { /* @@ -69,6 +70,8 @@ enum { ANDROID_PRIORITY_LESS_FAVORABLE = +1, }; -__END_DECLS +#if defined(__cplusplus) +} +#endif #endif /* ANDROID_THREAD_DEFS_H */ |
