diff options
author | Brad King <brad.king@kitware.com> | 2005-04-15 20:00:44 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2005-04-15 20:00:44 (GMT) |
commit | bddade9696d8fec453f9ce79168ad5aa678290ab (patch) | |
tree | ceb606dd6b7b492367a3e66606e730fa2c4ee79b /Source/kwsys/kwsys_cstddef.hxx.in | |
parent | cc996274f8c00f2651e260d1a6828c8877c4e2bd (diff) | |
download | CMake-bddade9696d8fec453f9ce79168ad5aa678290ab.zip CMake-bddade9696d8fec453f9ce79168ad5aa678290ab.tar.gz CMake-bddade9696d8fec453f9ce79168ad5aa678290ab.tar.bz2 |
COMP: Added KWSYS_CXX_HAS_CSTDDEF try-compile to KWSys to provide kwsys/cstddef header (to get size_t for hash_fun.hxx).
Diffstat (limited to 'Source/kwsys/kwsys_cstddef.hxx.in')
-rw-r--r-- | Source/kwsys/kwsys_cstddef.hxx.in | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/Source/kwsys/kwsys_cstddef.hxx.in b/Source/kwsys/kwsys_cstddef.hxx.in new file mode 100644 index 0000000..3c951ec --- /dev/null +++ b/Source/kwsys/kwsys_cstddef.hxx.in @@ -0,0 +1,37 @@ +/*========================================================================= + + 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 @KWSYS_NAMESPACE@_cstddef +#define @KWSYS_NAMESPACE@_cstddef + +#include <@KWSYS_NAMESPACE@/Configure.hxx> + +/* Avoid warnings in MSVC standard headers. */ +#ifdef _MSC_VER +# pragma warning (push, 1) +# pragma warning (disable: 4702) +# pragma warning (disable: 4786) +#endif + +/* Include the real header. */ +#if @KWSYS_NAMESPACE@_CXX_HAS_CSTDDEF +# include <cstddef> +#else +# include <stddef.h> +#endif + +#ifdef _MSC_VER +# pragma warning(pop) +#endif + +#endif |