diff options
author | Brad King <brad.king@kitware.com> | 2012-05-02 12:46:10 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2012-05-02 12:46:10 (GMT) |
commit | 221b5b697734dec909964bdba50c2e7004184539 (patch) | |
tree | cb2052078241ec50d837626b3936fd4fef95ada2 /Source/kwsys/kwsysPlatformTestsCXX.cxx | |
parent | 3817314e2a7d83b70a8d0ced189781f676db844c (diff) | |
download | CMake-221b5b697734dec909964bdba50c2e7004184539.zip CMake-221b5b697734dec909964bdba50c2e7004184539.tar.gz CMake-221b5b697734dec909964bdba50c2e7004184539.tar.bz2 |
KWSys: Remove dependencies on FundamentalType
The hash_fun.hxx header is configured whether FundamentalType is enabled
or not and so cannot depend on it. Run the relevant platform tests
whether or not FundamentalType is on and configure the result directly
into hash_fun. While at it, remove the dependence of SystemInformation
on FundamentalType too since it needs only information that we now
always compute.
Diffstat (limited to 'Source/kwsys/kwsysPlatformTestsCXX.cxx')
-rw-r--r-- | Source/kwsys/kwsysPlatformTestsCXX.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/kwsys/kwsysPlatformTestsCXX.cxx b/Source/kwsys/kwsysPlatformTestsCXX.cxx index 16124d3..7b73d06 100644 --- a/Source/kwsys/kwsysPlatformTestsCXX.cxx +++ b/Source/kwsys/kwsysPlatformTestsCXX.cxx @@ -122,6 +122,15 @@ int main() } #endif +#ifdef TEST_KWSYS_CXX_HAS___INT64 +__int64 f(__int64 n) { return n; } +int main() +{ + __int64 n = 0; + return static_cast<int>(f(n)); +} +#endif + #ifdef TEST_KWSYS_CXX_HAS_NULL_TEMPLATE_ARGS template <class T> class A; template <class T> int f(A<T>&); |