summaryrefslogtreecommitdiff
path: root/MSVC
diff options
context:
space:
mode:
Diffstat (limited to 'MSVC')
-rw-r--r--MSVC/regex/regex.c3
-rw-r--r--MSVC/regex/regex.h17
2 files changed, 16 insertions, 4 deletions
diff --git a/MSVC/regex/regex.c b/MSVC/regex/regex.c
index 8169880..86b5410 100644
--- a/MSVC/regex/regex.c
+++ b/MSVC/regex/regex.c
@@ -1,3 +1,6 @@
+#define __STDC__ 1
+#define REGEX_MALLOC 1
+
/* Extended regular expression matching and search library,
version 0.12.
(Implements POSIX draft P10003.2/D11.2, except for
diff --git a/MSVC/regex/regex.h b/MSVC/regex/regex.h
index 03940f9..264ed5f 100644
--- a/MSVC/regex/regex.h
+++ b/MSVC/regex/regex.h
@@ -1,3 +1,8 @@
+#ifndef __STDC__
+#define __STDC__ 1
+#define no__STDC__
+#endif
+
/* Definitions for data structures and routines for the regular
expression library, version 0.12.
@@ -389,15 +394,15 @@ typedef struct
unfortunately clutters up the declarations a bit, but I think it's
worth it. */
-//#if __STDC__
+#if __STDC__
#define _RE_ARGS(args) args
-//#else /* not __STDC__ */
+#else /* not __STDC__ */
-//#define _RE_ARGS(args) ()
+#define _RE_ARGS(args) ()
-//#endif /* not __STDC__ */
+#endif /* not __STDC__ */
#ifdef __cplusplus
extern "C" {
@@ -496,3 +501,7 @@ version-control: t
trim-versions-without-asking: nil
End:
*/
+
+#ifdef no__STDC__
+#undef __STDC__
+#endif