On Fri, 3 Mar 2006, Bruce Momjian wrote:

I am a little worried that some of our platforms do not support LL
designations, so I applied it only to CVS HEAD.


Yes, this one is probably better.

Kris Jurka
? src/port/.deps
? src/port/pg_config_paths.h
Index: src/port/gettimeofday.c
===================================================================
RCS file: /projects/cvsroot/pgsql/src/port/gettimeofday.c,v
retrieving revision 1.7
diff -c -r1.7 gettimeofday.c
*** src/port/gettimeofday.c     16 Dec 2005 21:55:27 -0000      1.7
--- src/port/gettimeofday.c     4 Mar 2006 00:18:59 -0000
***************
*** 32,38 ****
  
  
  /* FILETIME of Jan 1 1970 00:00:00. */
! static const unsigned __int64 epoch = 116444736000000000L;
  
  /*
   * timezone information is stored outside the kernel so tzp isn't used 
anymore.
--- 32,38 ----
  
  
  /* FILETIME of Jan 1 1970 00:00:00. */
! static const unsigned __int64 epoch = UINT64CONST(116444736000000000);
  
  /*
   * timezone information is stored outside the kernel so tzp isn't used 
anymore.
Index: src/include/commands/sequence.h
===================================================================
RCS file: /projects/cvsroot/pgsql/src/include/commands/sequence.h,v
retrieving revision 1.33
diff -c -r1.33 sequence.h
*** src/include/commands/sequence.h     2 Oct 2005 23:50:12 -0000       1.33
--- src/include/commands/sequence.h     4 Mar 2006 00:18:59 -0000
***************
*** 95,105 ****
  
  /* Set the upper and lower bounds of a sequence */
  #ifndef INT64_IS_BUSTED
! #ifdef HAVE_LL_CONSTANTS
! #define SEQ_MAXVALUE  ((int64) 0x7FFFFFFFFFFFFFFFLL)
! #else
! #define SEQ_MAXVALUE  ((int64) 0x7FFFFFFFFFFFFFFF)
! #endif
  #else                                                 /* INT64_IS_BUSTED */
  #define SEQ_MAXVALUE  ((int64) 0x7FFFFFFF)
  #endif   /* INT64_IS_BUSTED */
--- 95,101 ----
  
  /* Set the upper and lower bounds of a sequence */
  #ifndef INT64_IS_BUSTED
! #define SEQ_MAXVALUE  INT64CONST(0x7FFFFFFFFFFFFFFF)
  #else                                                 /* INT64_IS_BUSTED */
  #define SEQ_MAXVALUE  ((int64) 0x7FFFFFFF)
  #endif   /* INT64_IS_BUSTED */
---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

               http://archives.postgresql.org

Reply via email to