diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2009-04-23 15:09:47 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2009-04-23 15:09:47 (GMT) |
commit | 7fc99c94d4af79083160dea4eebba7c471954110 (patch) | |
tree | 45d2dce55e3f3e44cdea05c73624389907c4bb02 /VMSbuild/cmsys/stl/map | |
parent | d847ca8e270685826222b4ab106a380f9a5e7db0 (diff) | |
download | CMake-7fc99c94d4af79083160dea4eebba7c471954110.zip CMake-7fc99c94d4af79083160dea4eebba7c471954110.tar.gz CMake-7fc99c94d4af79083160dea4eebba7c471954110.tar.bz2 |
ENH: check in almost building VMS stuff with VMSBuild directory since the bootstrap script will not work on VMS
Diffstat (limited to 'VMSbuild/cmsys/stl/map')
-rw-r--r-- | VMSbuild/cmsys/stl/map | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/VMSbuild/cmsys/stl/map b/VMSbuild/cmsys/stl/map new file mode 100644 index 0000000..3e18fa7 --- /dev/null +++ b/VMSbuild/cmsys/stl/map @@ -0,0 +1,51 @@ +/*========================================================================= + + Program: KWSys - Kitware System Library + Module: $RCSfile$ + + Copyright (c) Kitware, Inc., Insight Consortium. All rights reserved. + See Copyright.txt or http://www.kitware.com/Copyright.htm for details. + + This software is distributed WITHOUT ANY WARRANTY; without even + the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + PURPOSE. See the above copyright notices for more information. + +=========================================================================*/ +#ifndef cmsys_stl_map +#define cmsys_stl_map + +#include <cmsys/Configure.hxx> + +/* Avoid warnings in MSVC standard headers. */ +#ifdef _MSC_VER +# pragma warning (push, 1) +# pragma warning (disable: 4702) +# pragma warning (disable: 4786) +#endif + +/* The HP standard library defines the functor "times" instead of + "multiplies" as specified by C++98 20.3.2 for backward + compatibility with earlier specifications. Defining this macro + fixes this behavior. The name "times" also conflicts with the + function declared in sys/times.h on that platform, so we must do + this as a work-around anyway. */ +#if defined(__HP_aCC) && !defined(__HPACC_USING_MULTIPLIES_IN_FUNCTIONAL) +# define __HPACC_USING_MULTIPLIES_IN_FUNCTIONAL +# define cmsys_DEFINED___HPACC_USING_MULTIPLIES_IN_FUNCTIONAL +#endif + +/* Include the real header. */ +#include <map> + +/* Cleanup. */ +#if defined(cmsys_DEFINED___HPACC_USING_MULTIPLIES_IN_FUNCTIONAL) +# undef cmsys_DEFINED___HPACC_USING_MULTIPLIES_IN_FUNCTIONAL +# undef __HPACC_USING_MULTIPLIES_IN_FUNCTIONAL +#endif + +#ifdef _MSC_VER +# pragma warning(pop) +#endif + + +#endif |