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/kwsysPlatformCxxTests.cxx | |
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/kwsysPlatformCxxTests.cxx')
-rw-r--r-- | Source/kwsys/kwsysPlatformCxxTests.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/kwsys/kwsysPlatformCxxTests.cxx b/Source/kwsys/kwsysPlatformCxxTests.cxx index a8b3d6f..44c0432 100644 --- a/Source/kwsys/kwsysPlatformCxxTests.cxx +++ b/Source/kwsys/kwsysPlatformCxxTests.cxx @@ -59,6 +59,12 @@ bool f(const kwsys_stl::string& s) { return s != ""; } int main() { return 0; } #endif +#ifdef TEST_KWSYS_CXX_HAS_CSTDDEF +#include <cstddef> +void f(size_t) {} +int main() { return 0; } +#endif + #ifdef TEST_KWSYS_CXX_HAS_NULL_TEMPLATE_ARGS template <class T> class A; template <class T> int f(A<T>&); |