summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/cmake/ConfigureChecks.cmake2
-rw-r--r--config/cmake/HDF5Tests.c8
2 files changed, 10 insertions, 0 deletions
diff --git a/config/cmake/ConfigureChecks.cmake b/config/cmake/ConfigureChecks.cmake
index c58eb3a..a7da4d3 100644
--- a/config/cmake/ConfigureChecks.cmake
+++ b/config/cmake/ConfigureChecks.cmake
@@ -493,6 +493,7 @@ ENDMACRO (HDF5_FUNCTION_TEST)
IF (WINDOWS)
SET (H5_HAVE_TIMEZONE 1)
SET (H5_HAVE_FUNCTION 1)
+ SET (H5_LONE_COLON 0)
ELSE (WINDOWS)
FOREACH (test
TIME_WITH_SYS_TIME
@@ -515,6 +516,7 @@ ELSE (WINDOWS)
HAVE_C99_FUNC
HAVE_C99_DESIGNATED_INITIALIZER
CXX_HAVE_OFFSETOF
+ LONE_COLON
)
HDF5_FUNCTION_TEST (${test})
ENDFOREACH (test)
diff --git a/config/cmake/HDF5Tests.c b/config/cmake/HDF5Tests.c
index 35e7258..f909ed9 100644
--- a/config/cmake/HDF5Tests.c
+++ b/config/cmake/HDF5Tests.c
@@ -364,3 +364,11 @@ int main(void)
}
#endif
+#ifdef LONE_COLON
+int main(int argc, char * argv)
+{
+ return 0;
+}
+#endif
+
+