]> granicus.if.org Git - postgresql/commitdiff
UINT64_MAX isn't defined on MSVC.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 8 Feb 2011 16:14:26 +0000 (18:14 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 8 Feb 2011 16:15:53 +0000 (18:15 +0200)
src/include/storage/predicate_internals.h

index 41aa70fdfa129d1b1bf9c9c2bfe8acdeb0f4707c..32e9a1bc218358e04868e765445e40e326cb877c 100644 (file)
@@ -33,7 +33,7 @@ typedef uint64 SerCommitSeqNo;
  *       at that point.  It's earlier than all normal sequence numbers,
  *       and is only used by recovered prepared transactions
  */
-#define InvalidSerCommitSeqNo          UINT64_MAX
+#define InvalidSerCommitSeqNo          ((SerCommitSeqNo) UINT64CONST(0xFFFFFFFFFFFFFFFF))
 #define RecoverySerCommitSeqNo         ((SerCommitSeqNo) 1)
 #define FirstNormalSerCommitSeqNo      ((SerCommitSeqNo) 2)