aboutsummaryrefslogtreecommitdiffstats
path: root/regex.c
diff options
context:
space:
mode:
Diffstat (limited to 'regex.c')
-rw-r--r--regex.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/regex.c b/regex.c
index 2428a263..fdfe654d 100644
--- a/regex.c
+++ b/regex.c
@@ -48,6 +48,11 @@
/* POSIX says that <sys/types.h> must be included (by the caller) before
<regex.h>. */
#include <sys/types.h>
+
+#if defined (_MSC_VER)
+#include <stdio.h> /* for size_t */
+#endif
+
#include <limits.h>
#include <regex.h>
#include "regex_internal.h"