Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/generic/include/boost/spirit/home/classic/namespace.hpp @ 16:2665513ce2d3
Add boost headers
author | Chris Cannam |
---|---|
date | Tue, 05 Aug 2014 11:11:38 +0100 |
parents | |
children |
rev | line source |
---|---|
Chris@16 | 1 /*============================================================================= |
Chris@16 | 2 Copyright (c) 2001-2008 Joel de Guzman |
Chris@16 | 3 Copyright (c) 2001-2008 Hartmut Kaiser |
Chris@16 | 4 http://spirit.sourceforge.net/ |
Chris@16 | 5 |
Chris@16 | 6 Distributed under the Boost Software License, Version 1.0. (See accompanying |
Chris@16 | 7 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
Chris@16 | 8 =============================================================================*/ |
Chris@16 | 9 #if !defined(SPIRIT_CLASSIC_NAMESPACE_HPP) |
Chris@16 | 10 #define SPIRIT_CLASSIC_NAMESPACE_HPP |
Chris@16 | 11 |
Chris@16 | 12 #if defined(BOOST_SPIRIT_USE_OLD_NAMESPACE) |
Chris@16 | 13 |
Chris@16 | 14 // Use the old namespace for Spirit.Classic, everything is located in the |
Chris@16 | 15 // namespace boost::spirit. |
Chris@16 | 16 // This is in place for backwards compatibility with Spirit V1.8.x. Don't use |
Chris@16 | 17 // it when combining Spirit.Classic with other parts of the library |
Chris@16 | 18 |
Chris@16 | 19 #define BOOST_SPIRIT_CLASSIC_NAMESPACE_BEGIN /*namespace classic {*/ |
Chris@16 | 20 #define BOOST_SPIRIT_CLASSIC_NS boost::spirit/*::classic*/ |
Chris@16 | 21 #define BOOST_SPIRIT_CLASSIC_NAMESPACE_END /*}*/ |
Chris@16 | 22 |
Chris@16 | 23 #else |
Chris@16 | 24 |
Chris@16 | 25 // This is the normal (and suggested) mode of operation when using |
Chris@16 | 26 // Spirit.Classic. Everything will be located in the namespace |
Chris@16 | 27 // boost::spirit::classic, avoiding name clashes with other parts of Spirit. |
Chris@16 | 28 |
Chris@16 | 29 #define BOOST_SPIRIT_CLASSIC_NAMESPACE_BEGIN namespace classic { |
Chris@16 | 30 #define BOOST_SPIRIT_CLASSIC_NS boost::spirit::classic |
Chris@16 | 31 #define BOOST_SPIRIT_CLASSIC_NAMESPACE_END } |
Chris@16 | 32 |
Chris@16 | 33 #endif |
Chris@16 | 34 |
Chris@16 | 35 #endif |