aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2003-10-21 15:34:34 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2003-10-21 15:34:34 +0000
commit7eb67fc98b2a623eaea6d91f638fb78c9421a288 (patch)
tree2e8eccaf4ceb408d2bc38b0c6492e0fb4de21b6d
parentc9f8c2fd041419d6d9e19ed586b08cffdbfebf3a (diff)
downloadpostgresql-7eb67fc98b2a623eaea6d91f638fb78c9421a288.tar.gz
postgresql-7eb67fc98b2a623eaea6d91f638fb78c9421a288.zip
Cope with platforms that offer LONGLONG_MIN in place of the C99-spec
LLONG_MIN. One example is AIX, per report from Andreas.
-rw-r--r--src/interfaces/ecpg/ecpglib/misc.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/interfaces/ecpg/ecpglib/misc.c b/src/interfaces/ecpg/ecpglib/misc.c
index bd144057cbe..d9a77ff3266 100644
--- a/src/interfaces/ecpg/ecpglib/misc.c
+++ b/src/interfaces/ecpg/ecpglib/misc.c
@@ -1,4 +1,4 @@
-/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/ecpglib/misc.c,v 1.15 2003/09/09 10:46:37 meskes Exp $ */
+/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/ecpglib/misc.c,v 1.16 2003/10/21 15:34:34 tgl Exp $ */
#define POSTGRES_ECPG_INTERNAL
#include "postgres_fe.h"
@@ -20,7 +20,11 @@
#ifdef HAVE_LONG_LONG_INT_64
#ifndef LONG_LONG_MIN
+#ifdef LLONG_MIN
#define LONG_LONG_MIN LLONG_MIN
+#else
+#define LONG_LONG_MIN LONGLONG_MIN
+#endif
#endif
#endif