From d010b993a4a7a57a8f01cfc5aacc9a23f1ba0082 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Mon, 14 Apr 2014 11:58:09 +0200 Subject: [PATCH 1/2] predef: fix GCC -Wundef warning Signed-off-by: Michael Stahl --- include/boost/predef/other/endian.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/predef/other/endian.h b/include/boost/predef/other/endian.h index 9d2a8bc..bfb00f3 100644 --- a/include/boost/predef/other/endian.h +++ b/include/boost/predef/other/endian.h @@ -77,7 +77,7 @@ information and acquired knowledge: # undef BOOST_ENDIAN_LITTLE_BYTE # define BOOST_ENDIAN_LITTLE_BYTE BOOST_VERSION_NUMBER_AVAILABLE # endif -# if (__BYTE_ORDER == __PDP_ENDIAN) +# if defined(__PDP_ENDIAN) && (__BYTE_ORDER == __PDP_ENDIAN) # undef BOOST_ENDIAN_LITTLE_WORD # define BOOST_ENDIAN_LITTLE_WORD BOOST_VERSION_NUMBER_AVAILABLE # endif -- 1.8.3.1