Patch by @mingwandroid

--- work/pcregrep.c.orig	2018-02-25 06:22:13.000000000 -0600
+++ work/pcregrep.c	2018-04-11 17:29:35.172681800 -0500
@@ -71,6 +71,12 @@
 
 #include "pcre.h"
 
+#if defined(_MSC_VER)
+#if (_MSC_VER < 1900)
+#define snprintf(_o, _n, _f, ...) _snprintf_s(_o, _n, _n, _f, __VA_ARGS__)
+#endif
+#endif
+
 #define FALSE 0
 #define TRUE 1
 
