Add checs for float.h

Remove 'unused variable' from dt.c
This commit is contained in:
Marc G. Fournier 1997-03-25 20:02:42 +00:00
parent 719a413fd2
commit 64c82a5016
4 changed files with 6 additions and 4 deletions

View File

@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/Attic/dt.c,v 1.9 1997/03/25 20:00:52 scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/Attic/dt.c,v 1.10 1997/03/25 20:02:42 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
@ -2556,7 +2556,6 @@ int EncodePostgresDate(struct tm *tm, double fsec, char *str)
char mabbrev[4], dabbrev[4];
int day;
double sec;
char buf[MAXDATELEN];
sec = (tm->tm_sec + fsec);

2
src/configure vendored
View File

@ -2353,7 +2353,7 @@ else
fi
done
for ac_hdr in readline.h history.h dld.h crypt.h endian.h
for ac_hdr in readline.h history.h dld.h crypt.h endian.h float.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6

View File

@ -134,7 +134,7 @@ dnl Checks for header files.
AC_HEADER_STDC
AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS(limits.h unistd.h termios.h values.h sys/select.h)
AC_CHECK_HEADERS(readline.h history.h dld.h crypt.h endian.h)
AC_CHECK_HEADERS(readline.h history.h dld.h crypt.h endian.h float.h)
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST

View File

@ -23,6 +23,9 @@
/* Set to 1 if you have <termios.h> */
#undef HAVE_TERMIOS_H
/* Set to 1 if you have <float.h> */
#undef HAVE_FLOAT_H
/* Set to 1 if you have <limits.h> */
#undef HAVE_LIMITS_H