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/regcomp.c b/lib/Support/regcomp.c
index 9ae66f3..16ca8d3 100644
--- a/lib/Support/regcomp.c
+++ b/lib/Support/regcomp.c
@@ -142,6 +142,7 @@
#else
#define DUPMAX 255
#endif
+#define INFINITY (DUPMAX + 1)
#ifndef NDEBUG
static int never = 0; /* for use in asserts; shuts lint up */