|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r84248 - in trunk/boost/iostreams/detail: . config
From: dnljms_at_[hidden]
Date: 2013-05-12 10:33:02
Author: danieljames
Date: 2013-05-12 10:33:01 EDT (Sun, 12 May 2013)
New Revision: 84248
URL: http://svn.boost.org/trac/boost/changeset/84248
Log:
Avoid undefined macro warnings in iostreams.
Text files modified:
trunk/boost/iostreams/detail/config/gcc.hpp | 3 +++
trunk/boost/iostreams/detail/select_by_size.hpp | 3 ++-
2 files changed, 5 insertions(+), 1 deletions(-)
Modified: trunk/boost/iostreams/detail/config/gcc.hpp
==============================================================================
--- trunk/boost/iostreams/detail/config/gcc.hpp (original)
+++ trunk/boost/iostreams/detail/config/gcc.hpp 2013-05-12 10:33:01 EDT (Sun, 12 May 2013)
@@ -19,6 +19,9 @@
#if defined(__GNUC__) && !defined(BOOST_INTEL)
# define BOOST_IOSTREAMS_GCC (__GNUC__ * 100 + __GNUC_MINOR__)
+# define BOOST_IOSTREAMS_GCC_WORKAROUND_GUARD 1
+#else
+# define BOOST_IOSTREAMS_GCC_WORKAROUND_GUARD 0
#endif
#endif // #ifndef BOOST_IOSTREAMS_DETAIL_CONFIG_GCC_HPP_INCLUDED
Modified: trunk/boost/iostreams/detail/select_by_size.hpp
==============================================================================
--- trunk/boost/iostreams/detail/select_by_size.hpp (original)
+++ trunk/boost/iostreams/detail/select_by_size.hpp 2013-05-12 10:33:01 EDT (Sun, 12 May 2013)
@@ -146,7 +146,8 @@
//----------Specializations of SELECT_BY_SIZE (outside main inclued guards)---//
-#if BOOST_SELECT_BY_SIZE_MAX_CASE > SELECT_BY_SIZE_MAX_SPECIALIZED
+#if defined(BOOST_SELECT_BY_SIZE_MAX_CASE) && \
+ BOOST_SELECT_BY_SIZE_MAX_CASE > SELECT_BY_SIZE_MAX_SPECIALIZED
#define BOOST_PP_LOCAL_MACRO(n) SELECT_BY_SIZE_SPEC(n)
#define BOOST_PP_LOCAL_LIMITS \
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk