diff options
| author | Tim Murray <timmurray@google.com> | 2014-04-07 22:06:38 +0000 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2014-04-07 22:06:38 +0000 |
| commit | 1f87d3ab8c384d03d1496c63f7faad15bd5eeba9 (patch) | |
| tree | 0a1b0019e8290d622621583487f5afef84ced87e | |
| parent | 7af3b47d24ea7ad9bfcbf98d6d250d34c6725d52 (diff) | |
| parent | 83fd6375f6d9016afe9bb03453d39b8c41cda548 (diff) | |
| download | system_core-1f87d3ab8c384d03d1496c63f7faad15bd5eeba9.zip system_core-1f87d3ab8c384d03d1496c63f7faad15bd5eeba9.tar.gz system_core-1f87d3ab8c384d03d1496c63f7faad15bd5eeba9.tar.bz2 | |
am 83fd6375: am 31631861: Merge "Add guards to prevent typedefs when C++11 is available."
* commit '83fd6375f6d9016afe9bb03453d39b8c41cda548':
Add guards to prevent typedefs when C++11 is available.
| -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 *); |
