pressure.hpp 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. // Boost.Units - A C++ library for zero-overhead dimensional analysis and
  2. // unit/quantity manipulation and conversion
  3. //
  4. // Copyright (C) 2003-2008 Matthias Christian Schabel
  5. // Copyright (C) 2008 Steven Watanabe
  6. //
  7. // Distributed under the Boost Software License, Version 1.0. (See
  8. // accompanying file LICENSE_1_0.txt or copy at
  9. // http://www.boost.org/LICENSE_1_0.txt)
  10. #ifndef BOOST_UNITS_SI_PRESSURE_HPP
  11. #define BOOST_UNITS_SI_PRESSURE_HPP
  12. #include <boost/units/systems/si/base.hpp>
  13. #include <boost/units/physical_dimensions/pressure.hpp>
  14. namespace boost {
  15. namespace units {
  16. namespace si {
  17. typedef unit<pressure_dimension,si::system> pressure;
  18. // windef.h #defines pascal on Metrowerks compilers
  19. #if defined(__MWERKS__)
  20. #if !__option(only_std_keywords)
  21. #define BOOST_UNITS_NO_PASCAL 1
  22. #elif defined(pascal)
  23. #define BOOST_UNITS_NO_PASCAL 1
  24. #endif
  25. #elif defined(pascal)
  26. #define BOOST_UNITS_NO_PASCAL 1
  27. #elif BOOST_MSVC
  28. #define BOOST_UNITS_NO_PASCAL 1
  29. #endif
  30. #ifndef BOOST_UNITS_NO_PASCAL
  31. BOOST_UNITS_STATIC_CONSTANT(pascal,pressure);
  32. #endif
  33. BOOST_UNITS_STATIC_CONSTANT(pascals,pressure);
  34. } // namespace si
  35. } // namespace units
  36. } // namespace boost
  37. #endif // BOOST_UNITS_SI_PRESSURE_HPP