From: Saleem Abdulrasool Date: Wed, 20 Apr 2016 22:18:50 +0000 (+0000) Subject: unwind: remove another instance of -Wexpansion-to-defined X-Git-Tag: llvmorg-3.9.0-rc1~8533 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0195c5e796406f38a06740e72e468acbfaeaf79d;p=platform%2Fupstream%2Fllvm.git unwind: remove another instance of -Wexpansion-to-defined Remove the use of undefined behaviour in the c preprocessor by always defining the value according to the state that was being checked. NFC. llvm-svn: 266927 --- diff --git a/libunwind/src/config.h b/libunwind/src/config.h index bf0c595..127dcd6 100644 --- a/libunwind/src/config.h +++ b/libunwind/src/config.h @@ -82,7 +82,11 @@ #endif #endif -#define _LIBUNWIND_SUPPORT_FRAME_APIS (defined(__i386__) || defined(__x86_64__)) +#if defined(__i386__) || defined(__x86_64__) +#define _LIBUNWIND_SUPPORT_FRAME_APIS 1 +#else +#define _LIBUNWIND_SUPPORT_FRAME_APIS 0 +#endif #if defined(__i386__) || defined(__x86_64__) || \ (!defined(__APPLE__) && defined(__arm__)) || \