On Windows, UINT64_MAX isn't defined; define it
authorKevin Koch <kpkoch@mit.edu>
Thu, 15 Nov 2007 14:14:15 +0000 (14:14 +0000)
committerKevin Koch <kpkoch@mit.edu>
Thu, 15 Nov 2007 14:14:15 +0000 (14:14 +0000)
TargetVersion: 1.7
Component: krb5-libs
Ticket: 5594

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20166 dc483132-0cff-0310-8789-dd5450dbe970

src/include/k5-platform.h

index b0d3e3af204cb5e243cea7ac01b02b9146c2fbb2..90eddf5d7696e6e598756a3ed7e6395554ff494b 100644 (file)
@@ -423,6 +423,10 @@ typedef struct { int error; unsigned char did_run; } k5_init_t;
 # define SIZE_MAX ((size_t)((size_t)0 - 1))
 #endif
 
+#ifndef UINT64_MAX
+# define UINT64_MAX ((UINT64_TYPE)((UINT64_TYPE)0 - 1))
+#endif
+
 /* Read and write integer values as (unaligned) octet strings in
    specific byte orders.  Add per-platform optimizations as
    needed.  */