summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/kwsysPlatformCxxTests.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2005-04-15 20:00:44 (GMT)
committerBrad King <brad.king@kitware.com>2005-04-15 20:00:44 (GMT)
commitbddade9696d8fec453f9ce79168ad5aa678290ab (patch)
treeceb606dd6b7b492367a3e66606e730fa2c4ee79b /Source/kwsys/kwsysPlatformCxxTests.cxx
parentcc996274f8c00f2651e260d1a6828c8877c4e2bd (diff)
downloadCMake-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.cxx6
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>&);