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 264803b9..f0f0d577 100644
--- a/src/microhttpd/mhd_limits.h
+++ b/src/microhttpd/mhd_limits.h
@@ -32,6 +32,14 @@
32#include <limits.h> 32#include <limits.h>
33#endif /* HAVE_LIMITS_H */ 33#endif /* HAVE_LIMITS_H */
34 34
35#ifndef UINT_MAX
36#ifdef __UINT_MAX__
37#define UINT_MAX __UINT_MAX__
38#else /* ! __UINT_MAX__ */
39#define UINT_MAX ((unsigned int) ~((unsigned int)0))
40#endif /* ! __UINT_MAX__ */
41#endif /* !UINT_MAX */
42
35#ifndef LONG_MAX 43#ifndef LONG_MAX
36#ifdef __LONG_MAX__ 44#ifdef __LONG_MAX__
37#define LONG_MAX __LONG_MAX__ 45#define LONG_MAX __LONG_MAX__