]> git.lyx.org Git - lyx.git/blob - boost/boost/format/format_config.hpp
fix compile error
[lyx.git] / boost / boost / format / format_config.hpp
1 // ------------------------------------------------------------------------------
2 // format_config.hpp : configuration for the format library
3 // The contents of this file should be integrated into the boost config system.
4 // ------------------------------------------------------------------------------
5
6 #ifndef BOOST_FORMAT_CONFIG_HPP
7 #define BOOST_FORMAT_CONFIG_HPP
8
9 #include "boost/config.hpp"
10
11 // *** This should go to "boost/config/stdlib/stlport.hpp".
12
13 // If the streams are not native and there are problems with using templates
14 // accross namespaces, we define some macros to enable a workaround for this.
15
16 // STLport 4.5
17 #if !defined(_STLP_OWN_IOSTREAMS) && defined(_STLP_USE_NAMESPACES) && defined(BOOST_NO_USING_TEMPLATE)
18 #  define BOOST_IO_STD 
19 #  define BOOST_IO_NEEDS_USING_DECLARATION
20 #endif
21
22 // STLport 4.0
23 #if !defined(__SGI_STL_OWN_IOSTREAMS) && defined(__STL_USE_OWN_NAMESPACE) && defined(BOOST_NO_USING_TEMPLATE)
24 #  define BOOST_IO_STD 
25 #  define BOOST_IO_NEEDS_USING_DECLARATION
26 #endif
27
28 // *** This should go to "boost/config/suffix.hpp".
29
30 #ifndef BOOST_IO_STD
31 #  define BOOST_IO_STD std::
32 #endif
33
34 // **** Workaround for io streams, stlport and msvc.
35 #ifdef BOOST_IO_NEEDS_USING_DECLARATION
36 namespace boost {
37   using std::char_traits;
38   using std::basic_ostream;
39   using std::basic_ostringstream;
40   namespace io {
41     using std::basic_ostream;
42     namespace detail {
43       using std::basic_ios;
44       using std::basic_ostream;
45       using std::basic_ostringstream;
46     }
47   }
48 }
49 #endif
50
51 // ------------------------------------------------------------------------------
52
53 #endif // BOOST_FORMAT_CONFIG_HPP