Chris@16: /*============================================================================= Chris@16: Copyright (c) 2001-2008 Joel de Guzman Chris@16: Copyright (c) 2001-2008 Hartmut Kaiser Chris@16: http://spirit.sourceforge.net/ Chris@16: Chris@16: Distributed under the Boost Software License, Version 1.0. (See accompanying Chris@16: file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) Chris@16: =============================================================================*/ Chris@16: #if !defined(SPIRIT_CLASSIC_NAMESPACE_HPP) Chris@16: #define SPIRIT_CLASSIC_NAMESPACE_HPP Chris@16: Chris@16: #if defined(BOOST_SPIRIT_USE_OLD_NAMESPACE) Chris@16: Chris@16: // Use the old namespace for Spirit.Classic, everything is located in the Chris@16: // namespace boost::spirit. Chris@16: // This is in place for backwards compatibility with Spirit V1.8.x. Don't use Chris@16: // it when combining Spirit.Classic with other parts of the library Chris@16: Chris@16: #define BOOST_SPIRIT_CLASSIC_NAMESPACE_BEGIN /*namespace classic {*/ Chris@16: #define BOOST_SPIRIT_CLASSIC_NS boost::spirit/*::classic*/ Chris@16: #define BOOST_SPIRIT_CLASSIC_NAMESPACE_END /*}*/ Chris@16: Chris@16: #else Chris@16: Chris@16: // This is the normal (and suggested) mode of operation when using Chris@16: // Spirit.Classic. Everything will be located in the namespace Chris@16: // boost::spirit::classic, avoiding name clashes with other parts of Spirit. Chris@16: Chris@16: #define BOOST_SPIRIT_CLASSIC_NAMESPACE_BEGIN namespace classic { Chris@16: #define BOOST_SPIRIT_CLASSIC_NS boost::spirit::classic Chris@16: #define BOOST_SPIRIT_CLASSIC_NAMESPACE_END } Chris@16: Chris@16: #endif Chris@16: Chris@16: #endif