Skip to content

Commit 87cdaf5

Browse files
committed
Remove <values.h> inclusions, no-longer-needed MAXINT definitions.
1 parent ad7b47a commit 87cdaf5

File tree

10 files changed

+12
-47
lines changed

10 files changed

+12
-47
lines changed

configure

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2285,7 +2285,7 @@ mkinstalldirs="\$(SHELL) \$(top_srcdir)/config/mkinstalldirs"
22852285

22862286

22872287

2288-
for ac_prog in gawk mawk nawk awk
2288+
for ac_prog in mawk gawk nawk awk
22892289
do
22902290
# Extract the first word of "$ac_prog", so it can be a program name with args.
22912291
set dummy $ac_prog; ac_word=$2
@@ -4018,7 +4018,7 @@ fi
40184018
##
40194019
## Header files
40204020
##
4021-
for ac_hdr in crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h pwd.h sys/pstat.h sys/select.h sys/socket.h sys/types.h termios.h values.h
4021+
for ac_hdr in crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h pwd.h sys/pstat.h sys/select.h sys/socket.h sys/types.h termios.h
40224022
do
40234023
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
40244024
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6

configure.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,7 @@ fi
796796
## Header files
797797
##
798798
dnl sys/socket.h and sys/types.h are required by AC_FUNC_ACCEPT_ARGTYPES
799-
AC_CHECK_HEADERS([crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h pwd.h sys/pstat.h sys/select.h sys/socket.h sys/types.h termios.h values.h])
799+
AC_CHECK_HEADERS([crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h pwd.h sys/pstat.h sys/select.h sys/socket.h sys/types.h termios.h])
800800

801801
AC_CHECK_HEADERS([readline/readline.h readline.h], [break])
802802
AC_CHECK_HEADERS([readline/history.h history.h], [break])

contrib/odbc/odbc.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,9 @@
33
#include <stdlib.h>
44
#include <ctype.h>
55
#include <errno.h>
6-
76
#include <float.h> /* faked on sunos4 */
8-
97
#include <math.h>
10-
118
#include <limits.h>
12-
#ifndef MAXINT
13-
#define MAXINT INT_MAX
14-
#endif
15-
16-
#ifdef HAVE_VALUES_H
17-
#include <values.h>
18-
#endif
199

2010
#include "fmgr.h"
2111
#include "utils/timestamp.h"

src/backend/optimizer/geqo/geqo_eval.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
77
* Portions Copyright (c) 1994, Regents of the University of California
88
*
9-
* $Id: geqo_eval.c,v 1.52 2000/07/12 22:59:01 petere Exp $
9+
* $Id: geqo_eval.c,v 1.53 2000/07/28 02:13:16 tgl Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -23,9 +23,6 @@
2323

2424
#include <math.h>
2525
#include <limits.h>
26-
#ifdef HAVE_VALUES_H
27-
#include <values.h>
28-
#endif
2926

3027
#include "optimizer/geqo.h"
3128
#include "optimizer/pathnode.h"

src/backend/postmaster/postmaster.c

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
*
1313
* IDENTIFICATION
14-
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.157 2000/07/17 03:05:04 tgl Exp $
14+
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.158 2000/07/28 02:13:26 tgl Exp $
1515
*
1616
* NOTES
1717
*
@@ -48,14 +48,9 @@
4848
#include <fcntl.h>
4949
#include <time.h>
5050
#include <sys/param.h>
51-
52-
/* moved here to prevent double define */
51+
/* moved here to prevent double define */
5352
#include <netdb.h>
54-
5553
#include <limits.h>
56-
#ifdef HAVE_VALUES_H
57-
#include <values.h>
58-
#endif
5954

6055
#ifdef HAVE_SYS_SELECT_H
6156
#include <sys/select.h>

src/backend/utils/adt/float.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/float.c,v 1.65 2000/07/17 03:05:17 tgl Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/float.c,v 1.66 2000/07/28 02:13:31 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -54,9 +54,6 @@
5454
#include "postgres.h"
5555

5656
#include <limits.h>
57-
#ifdef HAVE_VALUES_H
58-
#include <values.h>
59-
#endif
6057

6158
/* for finite() on Solaris */
6259
#ifdef HAVE_IEEEFP_H

src/backend/utils/adt/nabstime.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
*
1111
* IDENTIFICATION
12-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/nabstime.c,v 1.72 2000/07/12 22:59:09 petere Exp $
12+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/nabstime.c,v 1.73 2000/07/28 02:13:31 tgl Exp $
1313
*
1414
* NOTES
1515
*
@@ -24,10 +24,6 @@
2424
#include <float.h>
2525
#include <limits.h>
2626

27-
#ifdef HAVE_VALUES_H
28-
#include <values.h>
29-
#endif
30-
3127
#ifndef USE_POSIX_TIME
3228
#include <sys/timeb.h>
3329
#endif

src/backend/utils/adt/varbit.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Functions for the built-in type bit() and varying bit().
55
*
66
* IDENTIFICATION
7-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/varbit.c,v 1.5 2000/07/12 22:59:09 petere Exp $
7+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/varbit.c,v 1.6 2000/07/28 02:13:31 tgl Exp $
88
*
99
*-------------------------------------------------------------------------
1010
*/
@@ -21,10 +21,6 @@
2121
#include <math.h>
2222
#include <limits.h>
2323

24-
#ifdef HAVE_VALUES_H
25-
#include <values.h>
26-
#endif
27-
2824
#include "fmgr.h"
2925
#include "utils/builtins.h"
3026
#include "utils/varbit.h"

src/include/config.h.in

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* or in config.h afterwards. Of course, if you edit config.h, then your
99
* changes will be overwritten the next time you run configure.
1010
*
11-
* $Id: config.h.in,v 1.127 2000/07/14 16:39:35 petere Exp $
11+
* $Id: config.h.in,v 1.128 2000/07/28 02:13:40 tgl Exp $
1212
*/
1313

1414
#ifndef CONFIG_H
@@ -327,9 +327,6 @@
327327
/* Set to 1 if you have <termios.h> */
328328
#undef HAVE_TERMIOS_H
329329

330-
/* Set to 1 if you have <values.h> */
331-
#undef HAVE_VALUES_H
332-
333330
/* Set to 1 if you have <sys/pstat.h> */
334331
#undef HAVE_SYS_PSTAT_H
335332

src/include/utils/varbit.h

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,13 @@
55

66
#include <math.h>
77
#include <limits.h>
8-
#ifdef HAVE_VALUES_H
9-
#include <values.h>
10-
#endif
118

129
#include "utils/builtins.h"
1310

1411

15-
#define HEXDIG(z) (z)<10 ? ((z)+'0') : ((z)-10+'A')
12+
#define HEXDIG(z) ((z)<10 ? ((z)+'0') : ((z)-10+'A'))
1613

17-
/* Modeled on struct varlena from postgres.h, bu data type is bits8 */
14+
/* Modeled on struct varlena from postgres.h, but data type is bits8 */
1815
struct varbita
1916
{
2017
int32 vl_len;

0 commit comments

Comments
 (0)