diff options
-rw-r--r-- | configure.ac | 11 | ||||
-rw-r--r-- | defines.h | 3 |
2 files changed, 14 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 8bc96bb45..268fe1a4b 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -3541,6 +3541,17 @@ fprint_ll(FILE *f, long long n) | |||
3541 | ) | 3541 | ) |
3542 | fi | 3542 | fi |
3543 | 3543 | ||
3544 | AC_CHECK_DECLS([UINT32_MAX], , , [[ | ||
3545 | #ifdef HAVE_SYS_LIMITS_H | ||
3546 | # include <sys/limits.h> | ||
3547 | #endif | ||
3548 | #ifdef HAVE_LIMITS_H | ||
3549 | # include <limits.h> | ||
3550 | #endif | ||
3551 | #ifdef HAVE_STDINT_H | ||
3552 | # include <stdint.h> | ||
3553 | #endif | ||
3554 | ]]) | ||
3544 | 3555 | ||
3545 | # More checks for data types | 3556 | # More checks for data types |
3546 | AC_CACHE_CHECK([for u_int type], ac_cv_have_u_int, [ | 3557 | AC_CACHE_CHECK([for u_int type], ac_cv_have_u_int, [ |
@@ -244,6 +244,9 @@ typedef unsigned short int u_int16_t; | |||
244 | # endif | 244 | # endif |
245 | # if (SIZEOF_INT == 4) | 245 | # if (SIZEOF_INT == 4) |
246 | typedef unsigned int u_int32_t; | 246 | typedef unsigned int u_int32_t; |
247 | # if defined(HAVE_DECL_UINT32_MAX) && (HAVE_DECL_UINT32_MAX == 0) | ||
248 | # define UINT32_MAX UINT_MAX | ||
249 | # endif | ||
247 | # else | 250 | # else |
248 | # error "32 bit int type not found." | 251 | # error "32 bit int type not found." |
249 | # endif | 252 | # endif |