Ticket #9889: 0001-predef-fix-GCC-Wundef-warning.patch

File 0001-predef-fix-GCC-Wundef-warning.patch, 990 bytes (added by mstahl@…, 9 years ago)
  • include/boost/predef/other/endian.h

    From d010b993a4a7a57a8f01cfc5aacc9a23f1ba0082 Mon Sep 17 00:00:00 2001
    From: Tor Lillqvist <tml@iki.fi>
    Date: Mon, 14 Apr 2014 11:58:09 +0200
    Subject: [PATCH 1/2] predef: fix GCC -Wundef warning
    
    Signed-off-by: Michael Stahl <mstahl@redhat.com>
    ---
     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 b information and acquired knowledge:  
    7777#           undef BOOST_ENDIAN_LITTLE_BYTE
    7878#           define BOOST_ENDIAN_LITTLE_BYTE BOOST_VERSION_NUMBER_AVAILABLE
    7979#       endif
    80 #       if (__BYTE_ORDER == __PDP_ENDIAN)
     80#       if defined(__PDP_ENDIAN) && (__BYTE_ORDER == __PDP_ENDIAN)
    8181#           undef BOOST_ENDIAN_LITTLE_WORD
    8282#           define BOOST_ENDIAN_LITTLE_WORD BOOST_VERSION_NUMBER_AVAILABLE
    8383#       endif