mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-04-18 17:40:55 +08:00
[svn-r26079] Removed obsolete HAVE___TM_GMTOFF defines. This is an artifact of the Linux
fork of glibc. It's been deprecated since at least 1997. Part of HDFFV-9085 Tested on: jam
This commit is contained in:
parent
5bf140387f
commit
da2a2d9400
36
configure
vendored
36
configure
vendored
@ -26369,42 +26369,6 @@ $as_echo "no" >&6; }
|
||||
fi
|
||||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
||||
|
||||
## check if `struct tm' has a `__tm_gmtoff' member.
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __tm_gmtoff in struct tm" >&5
|
||||
$as_echo_n "checking for __tm_gmtoff in struct tm... " >&6; }
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
|
||||
#include <sys/time.h>
|
||||
#include <time.h>
|
||||
#ifdef FC_DUMMY_MAIN
|
||||
#ifndef FC_DUMMY_MAIN_EQ_F77
|
||||
# ifdef __cplusplus
|
||||
extern "C"
|
||||
# endif
|
||||
int FC_DUMMY_MAIN() { return 1; }
|
||||
#endif
|
||||
#endif
|
||||
int
|
||||
main ()
|
||||
{
|
||||
struct tm tm; tm.__tm_gmtoff=0;
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
_ACEOF
|
||||
if ac_fn_c_try_compile "$LINENO"; then :
|
||||
|
||||
$as_echo "#define HAVE___TM_GMTOFF 1" >>confdefs.h
|
||||
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||
$as_echo "yes" >&6; }
|
||||
else
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||
$as_echo "no" >&6; }
|
||||
fi
|
||||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
||||
|
||||
## Check whether the global variable `timezone' is defined.
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for global timezone variable" >&5
|
||||
$as_echo_n "checking for global timezone variable... " >&6; }
|
||||
|
10
configure.ac
10
configure.ac
@ -1791,16 +1791,6 @@ AC_TRY_COMPILE([
|
||||
AC_MSG_RESULT([yes])],
|
||||
[AC_MSG_RESULT([no])])
|
||||
|
||||
## check if `struct tm' has a `__tm_gmtoff' member.
|
||||
AC_MSG_CHECKING([for __tm_gmtoff in struct tm])
|
||||
AC_TRY_COMPILE([
|
||||
#include <sys/time.h>
|
||||
#include <time.h>], [struct tm tm; tm.__tm_gmtoff=0;],
|
||||
[AC_DEFINE([HAVE___TM_GMTOFF], [1],
|
||||
[Define if `__tm_gmtoff' is a member of `struct tm'])
|
||||
AC_MSG_RESULT([yes])],
|
||||
[AC_MSG_RESULT([no])])
|
||||
|
||||
## Check whether the global variable `timezone' is defined.
|
||||
AC_MSG_CHECKING([for global timezone variable])
|
||||
|
||||
|
@ -222,14 +222,11 @@ H5O_mtime_decode(H5F_t UNUSED *f, hid_t UNUSED dxpl_id, H5O_t UNUSED *open_oh,
|
||||
HGOTO_ERROR(H5E_OHDR, H5E_CANTINIT, NULL, "badly formatted modification time message")
|
||||
|
||||
#if defined(H5_HAVE_TM_GMTOFF)
|
||||
/* FreeBSD, OSF 4.0 */
|
||||
/* BSD-like systems */
|
||||
the_time += tm.tm_gmtoff;
|
||||
#elif defined(H5_HAVE___TM_GMTOFF)
|
||||
/* Linux libc-4 */
|
||||
the_time += tm.__tm_gmtoff;
|
||||
#elif defined(H5_HAVE_TIMEZONE)
|
||||
/* Linux libc-5 */
|
||||
the_time -= timezone - (tm.tm_isdst?3600:0);
|
||||
/* GNU/Linux systems */
|
||||
the_time -= timezone - (tm.tm_isdst ? 3600 : 0);
|
||||
#else
|
||||
/*
|
||||
* The catch-all. If we can't convert a character string universal
|
||||
|
@ -381,9 +381,6 @@
|
||||
/* Define to 1 if you have the `_scrsize' function. */
|
||||
#undef HAVE__SCRSIZE
|
||||
|
||||
/* Define if `__tm_gmtoff' is a member of `struct tm' */
|
||||
#undef HAVE___TM_GMTOFF
|
||||
|
||||
/* Define if your system can't handle converting floating-point values to long
|
||||
long. */
|
||||
#undef HW_FP_TO_LLONG_NOT_WORKS
|
||||
|
@ -401,9 +401,6 @@
|
||||
/* Define to 1 if you have the `_scrsize' function. */
|
||||
/* #undef H5_HAVE__SCRSIZE */
|
||||
|
||||
/* Define if `__tm_gmtoff' is a member of `struct tm' */
|
||||
/* #undef H5_HAVE___TM_GMTOFF */
|
||||
|
||||
/* Define if your system can't handle converting floating-point values to long
|
||||
long. */
|
||||
/* #undef H5_HW_FP_TO_LLONG_NOT_WORKS */
|
||||
|
Loading…
x
Reference in New Issue
Block a user