kwsys_stl.hxx.in 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*=========================================================================
  2. Program: KWSys - Kitware System Library
  3. Module: $RCSfile$
  4. Copyright (c) Kitware, Inc., Insight Consortium. All rights reserved.
  5. See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
  6. This software is distributed WITHOUT ANY WARRANTY; without even
  7. the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  8. PURPOSE. See the above copyright notices 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