summaryrefslogtreecommitdiffstats
path: root/config/cmake/HDF5Tests.c
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2011-04-11 20:52:09 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2011-04-11 20:52:09 (GMT)
commita835d1e65a3dbae4feca742db93d0b2e1a9ff29c (patch)
tree0c033a3c61aa19c512849d8ee9115c967ffd7c12 /config/cmake/HDF5Tests.c
parenta67dbbaf810f44b7b05a72fa38fa1da621651896 (diff)
downloadhdf5-a835d1e65a3dbae4feca742db93d0b2e1a9ff29c.zip
hdf5-a835d1e65a3dbae4feca742db93d0b2e1a9ff29c.tar.gz
hdf5-a835d1e65a3dbae4feca742db93d0b2e1a9ff29c.tar.bz2
[svn-r20472] Add message that H5_HAVE_WIN_THREADS requires WINVER >= 0x600 (VISTA or WIN7)
Diffstat (limited to 'config/cmake/HDF5Tests.c')
-rw-r--r--config/cmake/HDF5Tests.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/config/cmake/HDF5Tests.c b/config/cmake/HDF5Tests.c
index ea4a648..55e91a4 100644
--- a/config/cmake/HDF5Tests.c
+++ b/config/cmake/HDF5Tests.c
@@ -384,4 +384,21 @@ int main ()
#endif /* HAVE_GPFS */
+#ifdef HAVE_WIN_THREADS
+
+#include <windows.h>
+int main ()
+{
+ BOOL first_init_g=INIT_ONCE_STATIC_INIT;
+ BOOL CALLBACK win32_first_thread_init(PINIT_ONCE InitOnce, PVOID Parameter, PVOID *lpContext);
+ BOOL ret=FALSE;
+
+ ret=InitOnceExecuteOnce(&first_init_g, win32_first_thread_init, NULL, NULL);
+ exit(ret ? 0 : 1);
+}
+BOOL CALLBACK
+win32_first_thread_init(PINIT_ONCE InitOnce, PVOID Parameter, PVOID *lpContext)
+{return TRUE;}
+
+#endif /* HAVE_WIN_THREADS */