summaryrefslogtreecommitdiffstats
path: root/generic/regex.h
diff options
context:
space:
mode:
Diffstat (limited to 'generic/regex.h')
-rw-r--r--generic/regex.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/generic/regex.h b/generic/regex.h
index 9466fbb..4422f2a 100644
--- a/generic/regex.h
+++ b/generic/regex.h
@@ -106,7 +106,11 @@ extern "C" {
#endif
/* interface types */
#define __REG_WIDE_T Tcl_UniChar
+#ifdef __CYGWIN__
+#define __REG_REGOFF_T int /* not really right, but good enough... */
+#else
#define __REG_REGOFF_T long /* not really right, but good enough... */
+#endif
#define __REG_VOID_T void
#define __REG_CONST const
/* names and declarations */