Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 7eb67fc

Browse files
committed
Cope with platforms that offer LONGLONG_MIN in place of the C99-spec
LLONG_MIN. One example is AIX, per report from Andreas.
1 parent c9f8c2f commit 7eb67fc

File tree

1 file changed

+5
-1
lines changed
  • src/interfaces/ecpg/ecpglib

1 file changed

+5
-1
lines changed

src/interfaces/ecpg/ecpglib/misc.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/ecpglib/misc.c,v 1.15 2003/09/09 10:46:37 meskes Exp $ */
1+
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/ecpglib/misc.c,v 1.16 2003/10/21 15:34:34 tgl Exp $ */
22

33
#define POSTGRES_ECPG_INTERNAL
44
#include "postgres_fe.h"
@@ -20,7 +20,11 @@
2020

2121
#ifdef HAVE_LONG_LONG_INT_64
2222
#ifndef LONG_LONG_MIN
23+
#ifdef LLONG_MIN
2324
#define LONG_LONG_MIN LLONG_MIN
25+
#else
26+
#define LONG_LONG_MIN LONGLONG_MIN
27+
#endif
2428
#endif
2529
#endif
2630

0 commit comments

Comments
 (0)