mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
Define SIZEOF_INTPTR_T when defining replacement intptr_t
Fixes bug 7669
This commit is contained in:
parent
9b9cc6774f
commit
0102aaeb6b
@ -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."
|
||||
|
Loading…
Reference in New Issue
Block a user