diff options
| author | Tim Murray <timmurray@google.com> | 2014-04-07 22:00:12 +0000 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2014-04-07 22:00:12 +0000 |
| commit | 83fd6375f6d9016afe9bb03453d39b8c41cda548 (patch) | |
| tree | 58243768dab029580485e4a39013b3578dc7ca06 /include | |
| parent | 21ad8b4b2c2eb4efa9b1ad0f86b6bed989c64438 (diff) | |
| parent | 31631861647aadc28d6311a211419be79c34c7b0 (diff) | |
| download | system_core-83fd6375f6d9016afe9bb03453d39b8c41cda548.zip system_core-83fd6375f6d9016afe9bb03453d39b8c41cda548.tar.gz system_core-83fd6375f6d9016afe9bb03453d39b8c41cda548.tar.bz2 | |
am 31631861: Merge "Add guards to prevent typedefs when C++11 is available."
* commit '31631861647aadc28d6311a211419be79c34c7b0':
Add guards to prevent typedefs when C++11 is available.
Diffstat (limited to 'include')
| -rw-r--r-- | include/utils/Unicode.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/utils/Unicode.h b/include/utils/Unicode.h index c8c87c3..5b98de2 100644 --- a/include/utils/Unicode.h +++ b/include/utils/Unicode.h @@ -22,8 +22,11 @@ extern "C" { +// Definitions exist in C++11 +#if defined __cplusplus && __cplusplus < 201103L typedef uint32_t char32_t; typedef uint16_t char16_t; +#endif // Standard string functions on char16_t strings. int strcmp16(const char16_t *, const char16_t *); |
