kwsys_stl.hxx.in 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*============================================================================
  2. KWSys - Kitware System Library
  3. Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
  4. Distributed under the OSI-approved BSD License (the "License");
  5. see accompanying file Copyright.txt for details.
  6. This software is distributed WITHOUT ANY WARRANTY; without even the
  7. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. See the License for more information.
  9. ============================================================================*/
  10. #ifndef @KWSYS_NAMESPACE@_stl_@KWSYS_STL_HEADER@
  11. #define @KWSYS_NAMESPACE@_stl_@KWSYS_STL_HEADER@
  12. #include <@KWSYS_NAMESPACE@/Configure.hxx>
  13. /* Avoid warnings in MSVC standard headers. */
  14. #ifdef _MSC_VER
  15. # pragma warning (push, 1)
  16. # pragma warning (disable: 4702)
  17. # pragma warning (disable: 4786)
  18. #endif
  19. /* The HP standard library defines the functor "times" instead of
  20. "multiplies" as specified by C++98 20.3.2 for backward
  21. compatibility with earlier specifications. Defining this macro
  22. fixes this behavior. The name "times" also conflicts with the
  23. function declared in sys/times.h on that platform, so we must do
  24. this as a work-around anyway. */
  25. #if defined(__HP_aCC) && !defined(__HPACC_USING_MULTIPLIES_IN_FUNCTIONAL)
  26. # define __HPACC_USING_MULTIPLIES_IN_FUNCTIONAL
  27. # define @KWSYS_NAMESPACE@_DEFINED___HPACC_USING_MULTIPLIES_IN_FUNCTIONAL
  28. #endif
  29. /* Include the real header. */
  30. #include <@KWSYS_STL_HEADER@>
  31. /* Cleanup. */
  32. #if defined(@KWSYS_NAMESPACE@_DEFINED___HPACC_USING_MULTIPLIES_IN_FUNCTIONAL)
  33. # undef @KWSYS_NAMESPACE@_DEFINED___HPACC_USING_MULTIPLIES_IN_FUNCTIONAL
  34. # undef __HPACC_USING_MULTIPLIES_IN_FUNCTIONAL
  35. #endif
  36. #ifdef _MSC_VER
  37. # pragma warning(pop)
  38. #endif
  39. @KWSYS_STL_HEADER_EXTRA@
  40. #endif