mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-27 02:10:55 +08:00
parent
f0e0c7ed2a
commit
257c8c7454
@ -634,9 +634,6 @@
|
||||
PTHREAD_SCOPE_SYSTEM) call. */
|
||||
#cmakedefine H5_SYSTEM_SCOPE_THREADS @H5_SYSTEM_SCOPE_THREADS@
|
||||
|
||||
/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
|
||||
#cmakedefine H5_TIME_WITH_SYS_TIME @H5_TIME_WITH_SYS_TIME@
|
||||
|
||||
/* Define using v1.10 public API symbols by default */
|
||||
#cmakedefine H5_USE_110_API_DEFAULT @H5_USE_110_API_DEFAULT@
|
||||
|
||||
|
@ -412,7 +412,6 @@ if (MINGW OR NOT WINDOWS)
|
||||
#-----------------------------------------------------------------------------
|
||||
CHECK_STRUCT_HAS_MEMBER("struct tm" tm_gmtoff "time.h" ${HDF_PREFIX}_HAVE_TM_GMTOFF)
|
||||
CHECK_STRUCT_HAS_MEMBER("struct tm" __tm_gmtoff "time.h" ${HDF_PREFIX}_HAVE___TM_GMTOFF)
|
||||
CHECK_STRUCT_HAS_MEMBER("struct tm" tm_sec "sys/types.h;sys/time.h;time.h" ${HDF_PREFIX}_TIME_WITH_SYS_TIME)
|
||||
if (${HDF_PREFIX}_HAVE_SYS_TIME_H)
|
||||
CHECK_STRUCT_HAS_MEMBER("struct tm" tz_minuteswest "sys/types.h;sys/time.h;time.h" ${HDF_PREFIX}_HAVE_STRUCT_TIMEZONE)
|
||||
else ()
|
||||
|
@ -16,18 +16,15 @@
|
||||
|
||||
#include "hdf5.h"
|
||||
|
||||
#if defined(H5_TIME_WITH_SYS_TIME)
|
||||
#include <sys/time.h>
|
||||
#include <time.h>
|
||||
#elif defined(H5_HAVE_SYS_TIME_H)
|
||||
|
||||
#ifdef H5_HAVE_SYS_TIME_H
|
||||
#include <sys/time.h>
|
||||
#else
|
||||
#include <time.h>
|
||||
#endif
|
||||
|
||||
#ifdef H5_HAVE_WINSOCK2_H
|
||||
#include <winsock2.h>
|
||||
#endif /* H5_HAVE_WINSOCK2_H */
|
||||
#endif
|
||||
|
||||
/* The different types of timers we can have */
|
||||
typedef enum timer_type_ {
|
||||
|
@ -28,23 +28,22 @@
|
||||
#include <math.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#ifdef H5_HAVE_UNISTD_H
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
#include <time.h>
|
||||
|
||||
#ifdef H5_HAVE_SYS_STAT_H
|
||||
#include <sys/stat.h>
|
||||
#endif
|
||||
|
||||
#if defined(H5_TIME_WITH_SYS_TIME)
|
||||
#ifdef H5_HAVE_SYS_TIME_H
|
||||
#include <sys/time.h>
|
||||
#include <time.h>
|
||||
#elif defined(H5_HAVE_SYS_TIME_H)
|
||||
#include <sys/time.h>
|
||||
#else
|
||||
#include <time.h>
|
||||
#endif
|
||||
|
||||
#ifdef H5_HAVE_SYS_TYPES_H
|
||||
#include <sys/types.h>
|
||||
#endif
|
||||
|
||||
#ifdef H5_HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
const char *FILENAME[] = {"direct_write", "unix.raw", NULL};
|
||||
|
@ -31,23 +31,22 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifdef H5_HAVE_UNISTD_H
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
#include <time.h>
|
||||
|
||||
#ifdef H5_HAVE_SYS_STAT_H
|
||||
#include <sys/stat.h>
|
||||
#endif
|
||||
|
||||
#if defined(H5_TIME_WITH_SYS_TIME)
|
||||
#ifdef H5_HAVE_SYS_TIME_H
|
||||
#include <sys/time.h>
|
||||
#include <time.h>
|
||||
#elif defined(H5_HAVE_SYS_TIME_H)
|
||||
#include <sys/time.h>
|
||||
#else
|
||||
#include <time.h>
|
||||
#endif
|
||||
|
||||
#ifdef H5_HAVE_SYS_TYPES_H
|
||||
#include <sys/types.h>
|
||||
#endif
|
||||
|
||||
#ifdef H5_HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include <mpi.h>
|
||||
|
Loading…
Reference in New Issue
Block a user