diff options
| author | 2014-05-22 03:50:35 +0000 | |
|---|---|---|
| committer | 2014-05-22 03:50:35 +0000 | |
| commit | 4996f1191cd3d5edf85981d6412aa129da2dcd06 (patch) | |
| tree | eac9ee01c79388275c17ae53e0ddebaa1d4b618b | |
| parent | aca0ca9d949dee1bb4fe741b03a0514b324cc035 (diff) | |
| parent | 57f80fa56effba065a3a71847e9a0d07164aca14 (diff) | |
Merge "Use decltype() instead of typeof()"
| -rw-r--r-- | runtime/base/macros.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/base/macros.h b/runtime/base/macros.h index 81755144b9..47571f85bf 100644 --- a/runtime/base/macros.h +++ b/runtime/base/macros.h @@ -169,7 +169,7 @@ char (&ArraySizeHelper(T (&array)[N]))[N]; // bionic and glibc both have TEMP_FAILURE_RETRY, but Mac OS' libc doesn't. #ifndef TEMP_FAILURE_RETRY #define TEMP_FAILURE_RETRY(exp) ({ \ - typeof(exp) _rc; \ + decltype(exp) _rc; \ do { \ _rc = (exp); \ } while (_rc == -1 && errno == EINTR); \ |