diff options
author | Yunlian Jiang <yunlian@google.com> | 2016-02-22 23:13:35 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-02-22 23:13:35 +0000 |
commit | 4430dbfe7c48e0734a679d809d8efcddf37db58d (patch) | |
tree | ff5197715522c1b597bb9574bf793eff53504310 | |
parent | da92c82769f6b5e3673238a1d89d8df7af08c086 (diff) | |
parent | 09869323a738d3490b112f4ee8fc4f14f57f3c6c (diff) | |
download | libchrome-4430dbfe7c48e0734a679d809d8efcddf37db58d.tar.gz |
libchrome: fix -Wexpansion-to-defined warning
am: 09869323a7
* commit '09869323a738d3490b112f4ee8fc4f14f57f3c6c':
libchrome: fix -Wexpansion-to-defined warning
-rw-r--r-- | base/posix/safe_strerror.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/base/posix/safe_strerror.cc b/base/posix/safe_strerror.cc index e80e8f8bd9..798658e962 100644 --- a/base/posix/safe_strerror.cc +++ b/base/posix/safe_strerror.cc @@ -20,7 +20,11 @@ namespace base { -#define USE_HISTORICAL_STRERRO_R (defined(__GLIBC__) || defined(OS_NACL)) +#if defined(__GLIBC__) || defined(OS_NACL) +#define USE_HISTORICAL_STRERRO_R 1 +#else +#define USE_HISTORICAL_STRERRO_R 0 +#endif #if USE_HISTORICAL_STRERRO_R && defined(__GNUC__) // GCC will complain about the unused second wrap function unless we tell it |