summaryrefslogtreecommitdiff
path: root/src/pcre2_internal.h
diff options
context:
space:
mode:
authorph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2018-11-14 16:59:19 +0000
committerph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2018-11-14 16:59:19 +0000
commitba0cbc98725a5cfa538da8b49b208a0b1f3e0bb2 (patch)
tree31d6b8cd450de6a1efa521a69dfa4a54ffc0c0e3 /src/pcre2_internal.h
parent30dcfda7537de8d0b95200c533cf7aad792d1d9d (diff)
downloadpcre2-ba0cbc98725a5cfa538da8b49b208a0b1f3e0bb2.tar.gz
Unconditionally use inttypes.h instead of trying for stdint.h (simplification)
and remove the now unnecessary inclusion in pcre2_internal.h. git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@1040 6239d852-aaf2-0410-a92c-79f79f948069
Diffstat (limited to 'src/pcre2_internal.h')
-rw-r--r--src/pcre2_internal.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/pcre2_internal.h b/src/pcre2_internal.h
index 4f50eef..b4efcf0 100644
--- a/src/pcre2_internal.h
+++ b/src/pcre2_internal.h
@@ -148,16 +148,7 @@ pcre2_match() because of the way it backtracks. */
/* When checking for integer overflow in pcre2_compile(), we need to handle
large integers. If a 64-bit integer type is available, we can use that.
Otherwise we have to cast to double, which of course requires floating point
-arithmetic. Handle this by defining a macro for the appropriate type. If
-stdint.h is available, include it; it may define INT64_MAX. Systems that do not
-have stdint.h (e.g. Solaris) may have inttypes.h. The macro int64_t may be set
-by "configure". */
-
-#if defined HAVE_STDINT_H
-#include <stdint.h>
-#elif defined HAVE_INTTYPES_H
-#include <inttypes.h>
-#endif
+arithmetic. Handle this by defining a macro for the appropriate type. */
#if defined INT64_MAX || defined int64_t
#define INT64_OR_DOUBLE int64_t