diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2015-04-27 02:21:52 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2015-04-27 02:21:52 +0000 |
commit | 91aef804b1932cba176e1d4f900cbc9dd9316a0e (patch) | |
tree | f72f122d370f87e6882212f52a7f2969724def4e /libcxxabi/src | |
parent | 5b07572df23fa385b468786e4a8847ec74d11795 (diff) | |
download | bcm5719-llvm-91aef804b1932cba176e1d4f900cbc9dd9316a0e.tar.gz bcm5719-llvm-91aef804b1932cba176e1d4f900cbc9dd9316a0e.zip |
libc++abi: silence some warnings
Cleans up the -Wundef warning caused by the use of the __LITTLE_ENDIAN__ macro.
Instead use `__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__`. `__BYTE_ORDER__` is
defined by GCC since 4.2 and by clang. This avoids the undef case where a macro
may be undefined. This has previously caught real errors in libunwind.
llvm-svn: 235828
Diffstat (limited to 'libcxxabi/src')
-rw-r--r-- | libcxxabi/src/cxa_demangle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxxabi/src/cxa_demangle.cpp b/libcxxabi/src/cxa_demangle.cpp index 789d57731be..9a0ed216e5e 100644 --- a/libcxxabi/src/cxa_demangle.cpp +++ b/libcxxabi/src/cxa_demangle.cpp @@ -195,7 +195,7 @@ parse_floating_number(const char* first, const char* last, C& db) } if (*t == 'E') { -#if __LITTLE_ENDIAN__ +#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ std::reverse(buf, e); #endif char num[float_data<Float>::max_demangled_size] = {0}; |