summaryrefslogtreecommitdiff
path: root/util-internal.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2010-02-03 14:37:42 -0500
committerNick Mathewson <nickm@torproject.org>2010-02-03 14:37:42 -0500
commitaba1fff33a9c1060a6a721f01f4d09c884a4ed5d (patch)
treed528318b4cf98d2d1e17caa1dceafb9c1652ffe1 /util-internal.h
parentda6135e356b4ff8489b7810682a70d5a70ac7197 (diff)
downloadlibevent-aba1fff33a9c1060a6a721f01f4d09c884a4ed5d.tar.gz
Add EV_*_MAX macros to event2/util.h to expose limits for ev_* types.
Diffstat (limited to 'util-internal.h')
-rw-r--r--util-internal.h35
1 files changed, 0 insertions, 35 deletions
diff --git a/util-internal.h b/util-internal.h
index 8d1420fe..24893684 100644
--- a/util-internal.h
+++ b/util-internal.h
@@ -174,41 +174,6 @@ long _evutil_weakrand(void);
} \
} while(0)
-#ifdef UINT64_MAX
-#define EV_UINT64_MAX UINT64_MAX
-#elif defined(WIN32)
-#define EV_UINT64_MAX 0xffffffffffffffffui64
-#elif _EVENT_SIZEOF_LONG_LONG == 8
-#define EV_UINT64_MAX 0xffffffffffffffffull
-#elif _EVENT_SIZEOF_LONG == 8
-#define EV_UINT64_MAX 0xfffffffffffffffful
-#else
-/* Hope for a two's complement representation */
-#define EV_UINT64_MAX ((ev_uint64_t)-1)
-#endif
-
-#ifdef UINT32_MAX
-#define EV_UINT32_MAX UINT32_MAX
-#elif defined(WIN32)
-#define EV_UINT32_MAX 0xffffffffui64
-#elif _EVENT_SIZEOF_INT == 4
-#define EV_UINT32_MAX 0xffffffffu
-#elif _EVENT_SIZEOF_LONG == 4
-#define EV_UINT32_MAX 0xfffffffful
-#else
-/* Hope for a two's complement representation */
-#define EV_UINT32_MAX ((ev_uint32_t)-1)
-#endif
-
-#if _EVENT_SIZEOF_SIZE_T == 8
-#define EV_SIZE_MAX EV_UINT64_MAX
-#elif _EVENT_SIZEOF_SIZE_T == 4
-#define EV_SIZE_MAX EV_UINT32_MAX
-#else
-/* Hope for a two's complement representation */
-#define EV_SIZE_MAX ((size_t)-1)
-#endif
-
/* Internal addrinfo error code. This one is returned from only from
* evutil_getaddrinfo_common, when we are sure that we'll have to hit a DNS
* server. */