diff options
| author | Neil Conway <neilc@samurai.com> | 2006-03-11 01:19:22 +0000 |
|---|---|---|
| committer | Neil Conway <neilc@samurai.com> | 2006-03-11 01:19:22 +0000 |
| commit | 7992d0fbcaa5fa185f465e434836d63c1da94ba9 (patch) | |
| tree | 7e58e51f3b1461684fb14b797bc8142209d7a508 /contrib/dblink | |
| parent | c65ab0bfa97b71bceae6402498910f4074996279 (diff) | |
| download | postgresql-7992d0fbcaa5fa185f465e434836d63c1da94ba9.tar.gz | |
Remove a few places that attempted to define INT_MAX, SCHAR_MAX, and
similar constants if they were not previously defined. All these
constants must be defined by limits.h according to C89, so we can
safely assume they are present.
Diffstat (limited to 'contrib/dblink')
| -rw-r--r-- | contrib/dblink/dblink.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/contrib/dblink/dblink.c b/contrib/dblink/dblink.c index b1b863ea1e..22a3425ee7 100644 --- a/contrib/dblink/dblink.c +++ b/contrib/dblink/dblink.c @@ -31,6 +31,8 @@ */ #include "postgres.h" +#include <limits.h> + #include "libpq-fe.h" #include "fmgr.h" #include "funcapi.h" @@ -1112,9 +1114,6 @@ dblink_get_pkey(PG_FUNCTION_ARGS) } -#ifndef SHRT_MAX -#define SHRT_MAX (0x7FFF) -#endif /* * dblink_build_sql_insert * |
