aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/mhd_limits.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/mhd_limits.h')
-rw-r--r--src/microhttpd/mhd_limits.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/microhttpd/mhd_limits.h b/src/microhttpd/mhd_limits.h
index a4e15423..b61da5f4 100644
--- a/src/microhttpd/mhd_limits.h
+++ b/src/microhttpd/mhd_limits.h
@@ -38,6 +38,14 @@
38 ( (type) ((( ((type) 1) << (sizeof(type) * 8 - 2)) - 1) * 2 + 1) ) 38 ( (type) ((( ((type) 1) << (sizeof(type) * 8 - 2)) - 1) * 2 + 1) )
39#define MHD_TYPE_IS_SIGNED_(type) (((type) 0)>((type) - 1)) 39#define MHD_TYPE_IS_SIGNED_(type) (((type) 0)>((type) - 1))
40 40
41#ifndef INT_MAX
42#ifdef __INT_MAX__
43#define INT_MAX __INT_MAX__
44#else /* ! __UINT_MAX__ */
45#define INT_MAX MHD_SIGNED_TYPE_MAX_ (int)
46#endif /* ! __UINT_MAX__ */
47#endif /* !UINT_MAX */
48
41#ifndef UINT_MAX 49#ifndef UINT_MAX
42#ifdef __UINT_MAX__ 50#ifdef __UINT_MAX__
43#define UINT_MAX __UINT_MAX__ 51#define UINT_MAX __UINT_MAX__