summaryrefslogtreecommitdiff
path: root/compat
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-06-27 16:56:47 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-06-27 16:56:47 (GMT)
commit2380db5b28aff110cd8f6ef2bb65dd5ab49303b2 (patch)
tree843f9228ca38d314c06cdc075f8e18893800ee13 /compat
parentbe099661f41e661eac8af2b4879a84a9eb9a7b9b (diff)
parentbd8f0055836e7f9c5010d5ed81d3b20a835e44c8 (diff)
downloadgit-2380db5b28aff110cd8f6ef2bb65dd5ab49303b2.zip
git-2380db5b28aff110cd8f6ef2bb65dd5ab49303b2.tar.gz
git-2380db5b28aff110cd8f6ef2bb65dd5ab49303b2.tar.bz2
Merge branch 'rj/compat-regex-size-max-fix'
A compilation fix. * rj/compat-regex-size-max-fix: regex: fix a SIZE_MAX macro redefinition warning
Diffstat (limited to 'compat')
-rw-r--r--compat/regex/regcomp.c2
-rw-r--r--compat/regex/regex.c1
2 files changed, 1 insertions, 2 deletions
diff --git a/compat/regex/regcomp.c b/compat/regex/regcomp.c
index fba5986..d8bde06 100644
--- a/compat/regex/regcomp.c
+++ b/compat/regex/regcomp.c
@@ -18,8 +18,6 @@
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301 USA. */
-#include <stdint.h>
-
static reg_errcode_t re_compile_internal (regex_t *preg, const char * pattern,
size_t length, reg_syntax_t syntax);
static void re_compile_fastmap_iter (regex_t *bufp,
diff --git a/compat/regex/regex.c b/compat/regex/regex.c
index 6aaae00..5cb23e5 100644
--- a/compat/regex/regex.c
+++ b/compat/regex/regex.c
@@ -60,6 +60,7 @@
GNU regex allows. Include it before <regex.h>, which correctly
#undefs RE_DUP_MAX and sets it to the right value. */
#include <limits.h>
+#include <stdint.h>
#ifdef GAWK
#undef alloca