summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYunlian Jiang <yunlian@google.com>2016-02-22 10:25:08 -0800
committerYunlian Jiang <yunlian@google.com>2016-02-22 10:25:08 -0800
commit09869323a738d3490b112f4ee8fc4f14f57f3c6c (patch)
treeff5197715522c1b597bb9574bf793eff53504310
parent2e985f09eb6ffbfa4edae73e8c935edf75ed7e7a (diff)
downloadlibchrome-brillo-m10-release.tar.gz
libchrome: fix -Wexpansion-to-defined warningbrillo-m10-releasebrillo-m10-dev
This fixes the -Wexpansion-to-defined warning BUG=chromium:587491 TEST=it builds with latest clang. Change-Id: I2ee6a9c4ea47450f8ec352746d48fd5b3eaf6af1
-rw-r--r--base/posix/safe_strerror.cc6
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