[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] Hm. We probably should define INT64_MAX if we really want i...



Update of /home/or/cvsroot/tor/src/common
In directory moria:/tmp/cvs-serv25911/src/common

Modified Files:
	torint.h 
Log Message:
Hm. We probably should define INT64_MAX if we really want it.  (Especially since we only want it on one platform, where, coincidentally, it is not defined.)

Index: torint.h
===================================================================
RCS file: /home/or/cvsroot/tor/src/common/torint.h,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -p -d -r1.24 -r1.25
--- torint.h	29 Mar 2006 05:14:12 -0000	1.24
+++ torint.h	18 Jul 2006 02:01:32 -0000	1.25
@@ -155,6 +155,9 @@ typedef unsigned long long uint64_t;
 #ifndef UINT64_MAX
 #define UINT64_MAX 0xffffffffffffffffull
 #endif
+#ifndef INT64_MAX
+#define INT64_MAX 0x7fffffffffffffffll
+#endif
 #endif
 
 #if (SIZEOF___INT64 == 8)
@@ -169,6 +172,9 @@ typedef unsigned __int64 uint64_t;
 #ifndef UINT64_MAX
 #define UINT64_MAX 0xffffffffffffffffui64
 #endif
+#ifndef INT64_MAX
+#define INT64_MAX 0x7fffffffffffffffi64
+#endif
 #endif
 
 #if (SIZEOF_VOID_P > 4 && SIZEOF_VOID_P <= 8)