summaryrefslogtreecommitdiff
path: root/deps
diff options
context:
space:
mode:
authorCarlos Martín Nieto <carlos@cmartin.tk>2012-02-18 00:54:03 +0100
committerCarlos Martín Nieto <carlos@cmartin.tk>2012-02-18 01:31:43 +0100
commit4a1ecba6d905fb699074df37f3fdb4cd7f5ca994 (patch)
tree2d2ac2d49687b69c6a09d38389bdbf4f93b2981a /deps
parent2b15f61f483391a12bdc3749c9d20d4c73757a16 (diff)
downloadlibgit2-4a1ecba6d905fb699074df37f3fdb4cd7f5ca994.tar.gz
regex: Move the defines to a config header and include it unconditionally
Diffstat (limited to 'deps')
-rw-r--r--deps/regex/config.h7
-rw-r--r--deps/regex/regex.c2
2 files changed, 7 insertions, 2 deletions
diff --git a/deps/regex/config.h b/deps/regex/config.h
new file mode 100644
index 000000000..95370690e
--- /dev/null
+++ b/deps/regex/config.h
@@ -0,0 +1,7 @@
+#ifndef _REGEX_CONFIG_H_
+#define _REGEX_CONFIG_H_
+
+# define GAWK
+# define NO_MBSUPPORT
+
+#endif
diff --git a/deps/regex/regex.c b/deps/regex/regex.c
index 3dd8dfa01..f9a8c9bf1 100644
--- a/deps/regex/regex.c
+++ b/deps/regex/regex.c
@@ -18,9 +18,7 @@
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301 USA. */
-#ifdef HAVE_CONFIG_H
#include "config.h"
-#endif
/* Make sure noone compiles this code with a C++ compiler. */
#ifdef __cplusplus