From 18eeebdebdc13ab271cd31df3dc3b9e6addac279 Mon Sep 17 00:00:00 2001 From: Sean McBride Date: Wed, 3 Feb 2016 16:36:12 -0500 Subject: [PATCH] COMP: Fixed clang warning about macro expansion giving defined Change-Id: Id3881761b10e7b3d01d0b3662453680df583947a --- .../Core/Common/src/itkFloatingPointExceptions.cxx | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Modules/Core/Common/src/itkFloatingPointExceptions.cxx b/Modules/Core/Common/src/itkFloatingPointExceptions.cxx index 92e1e412a1a..22223692fe7 100644 --- a/Modules/Core/Common/src/itkFloatingPointExceptions.cxx +++ b/Modules/Core/Common/src/itkFloatingPointExceptions.cxx @@ -58,8 +58,17 @@ #include // needed on Solaris #include -#define DEFINED_PPC (defined(__ppc__) || defined(__ppc64__)) -#define DEFINED_INTEL (defined(__i386__) || defined(__x86_64__)) +#if defined(__ppc__) || defined(__ppc64__) +#define DEFINED_PPC 1 +#else +#define DEFINED_PPC 0 +#endif + +#if defined(__i386__) || defined(__x86_64__) +#define DEFINED_INTEL 1 +#else +#define DEFINED_INTEL 0 +#endif #if defined(__sun) || defined(__EMSCRIPTEN__)