workarounds_stlport.hpp 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. // ----------------------------------------------------------------------------
  2. // workarounds_stlport.hpp : workaround STLport issues
  3. // ----------------------------------------------------------------------------
  4. // Copyright Samuel Krempp 2003. Use, modification, and distribution are
  5. // subject to the Boost Software License, Version 1.0. (See accompanying
  6. // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  7. // see http://www.boost.org/libs/format for library home page
  8. // ----------------------------------------------------------------------------
  9. #ifndef BOOST_MACROS_STLPORT_HPP
  10. #define BOOST_MACROS_STLPORT_HPP
  11. // *** This should go to "boost/config/stdlib/stlport.hpp".
  12. // If the streams are not native and there are problems with using templates
  13. // accross namespaces, we define some macros to enable a workaround for this.
  14. // STLport 4.5
  15. #if !defined(_STLP_OWN_IOSTREAMS) && defined(_STLP_USE_NAMESPACES) && defined(BOOST_NO_USING_TEMPLATE)
  16. # define BOOST_IO_STD
  17. # define BOOST_IO_NEEDS_USING_DECLARATION
  18. #endif
  19. // STLport 4.0
  20. #if !defined(__SGI_STL_OWN_IOSTREAMS) && defined(__STL_USE_OWN_NAMESPACE) && defined(BOOST_NO_USING_TEMPLATE)
  21. # define BOOST_IO_STD
  22. # define BOOST_IO_NEEDS_USING_DECLARATION
  23. #endif
  24. // ----------------------------------------------------------------------------
  25. #endif // BOOST_MACROS_STLPORT_HPP