More MSVC warning fixes:
1. DUPMAX is defined in regcomp.c, no need to redefine it in regutils.
2. MSVC doesn't like snprintf, use _snprintf instead.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81114 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Support/regerror.c b/lib/Support/regerror.c
index 88d33b8..1d67c9a 100644
--- a/lib/Support/regerror.c
+++ b/lib/Support/regerror.c
@@ -45,6 +45,10 @@
#include "regutils.h"
+#ifdef _MSC_VER
+#define snprintf _snprintf
+#endif
+
static const char *regatoi(const llvm_regex_t *, char *, int);
static struct rerr {