]> granicus.if.org Git - postgresql/commitdiff
Cope with platforms that offer LONGLONG_MIN in place of the C99-spec
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 21 Oct 2003 15:34:34 +0000 (15:34 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 21 Oct 2003 15:34:34 +0000 (15:34 +0000)
LLONG_MIN.  One example is AIX, per report from Andreas.

src/interfaces/ecpg/ecpglib/misc.c

index bd144057cbe2b6ebd7ff90456769ff41b49362eb..d9a77ff3266207aaa70145ddeba32725bbb76ee7 100644 (file)
@@ -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"
 
 #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