summaryrefslogtreecommitdiff
path: root/deps
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@microsoft.com>2013-12-09 10:25:36 -0500
committerEdward Thomson <ethomson@microsoft.com>2013-12-09 11:40:44 -0500
commit5588f0736089ab00e12cb7ea7c8143ec666738e6 (patch)
tree1f877c23d223d4dedabafb4bc6c793efe82f9fdc /deps
parent07c5dc84fd486b380d618319b4852591d355bd81 (diff)
downloadlibgit2-5588f0736089ab00e12cb7ea7c8143ec666738e6.tar.gz
Clean up warnings
Diffstat (limited to 'deps')
-rw-r--r--deps/regex/regex.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/deps/regex/regex.c b/deps/regex/regex.c
index f9a8c9bf1..225a001ee 100644
--- a/deps/regex/regex.c
+++ b/deps/regex/regex.c
@@ -67,10 +67,17 @@
#include "regex_internal.h"
#include "regex_internal.c"
+
#ifdef GAWK
-#define bool int
-#define true (1)
-#define false (0)
+# define bool int
+
+# ifndef true
+# define true (1)
+# endif
+
+# ifndef false
+# define false (0)
+# endif
#endif
#include "regcomp.c"
#include "regexec.c"