summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpixel <pixel>2004-12-19 03:20:30 +0000
committerpixel <pixel>2004-12-19 03:20:30 +0000
commitbbb9b3a36ac54bf428b2e17316ae856663e9da6b (patch)
tree3061140fef086950cac6c48c86c467596ac3b96c
parent6b5d244193f23f0c5ba405339d5363b0f9ce0f45 (diff)
Commiting the real regexp fix.
-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