]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Define SIZEOF_INTPTR_T when defining replacement intptr_t
authorNick Mathewson <nickm@torproject.org>
Tue, 18 Dec 2012 18:10:16 +0000 (13:10 -0500)
committerNick Mathewson <nickm@torproject.org>
Thu, 17 Jan 2013 03:29:38 +0000 (22:29 -0500)
Fixes bug 7669

src/common/torint.h

index 0db9cc7e24a470b1bd0b16e15229baca3e676fa4..1d76ee6ac615a97f884e05aeffb5a5c6c47a6eab 100644 (file)
@@ -214,16 +214,20 @@ typedef int32_t ssize_t;
 #if (SIZEOF_VOID_P > 4 && SIZEOF_VOID_P <= 8)
 #ifndef HAVE_INTPTR_T
 typedef int64_t intptr_t;
+#define SIZEOF_INTPTR_T 8
 #endif
 #ifndef HAVE_UINTPTR_T
 typedef uint64_t uintptr_t;
+#define SIZEOF_UINTPTR_T 8
 #endif
 #elif (SIZEOF_VOID_P > 2 && SIZEOF_VOID_P <= 4)
 #ifndef HAVE_INTPTR_T
 typedef int32_t intptr_t;
+#define SIZEOF_INTPTR_T 4
 #endif
 #ifndef HAVE_UINTPTR_T
 typedef uint32_t uintptr_t;
+#define SIZEOF_UINTPTR_T 4
 #endif
 #else
 #error "void * is either >8 bytes or <= 2.  In either case, I am confused."