summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>1999-11-13 18:03:07 +0000
committerAndi Gutmans <andi@php.net>1999-11-13 18:03:07 +0000
commit3c1b3622351aef836033a9c9786e57bd9b363724 (patch)
tree2481ec310ec4d87567c6f9991cfe29d4abc97137
parent677bf03f0715cfcee34d0d8ee940e054e1a6278f (diff)
downloadphp-git-3c1b3622351aef836033a9c9786e57bd9b363724.tar.gz
- Make Win32 compile again
-rw-r--r--ext/ereg/regex/regex_extra.h4
-rw-r--r--php4dllts.dsp8
-rw-r--r--regex/regex_extra.h4
3 files changed, 13 insertions, 3 deletions
diff --git a/ext/ereg/regex/regex_extra.h b/ext/ereg/regex/regex_extra.h
index b839ddc2ad..511df57f67 100644
--- a/ext/ereg/regex/regex_extra.h
+++ b/ext/ereg/regex/regex_extra.h
@@ -6,9 +6,13 @@
#if (defined(REGEX) && REGEX == 1) || (!defined(REGEX))
+#if !(WIN32|WINNT)
+
#define regexec php_regexec
#define regerror php_regerror
#define regfree php_regfree
#define regcomp php_regcomp
#endif
+
+#endif
diff --git a/php4dllts.dsp b/php4dllts.dsp
index 55e4d9ef92..0d1e929cab 100644
--- a/php4dllts.dsp
+++ b/php4dllts.dsp
@@ -779,7 +779,8 @@ InputPath=".\configuration-parser.y"
BuildCmds= \
if not "X%CYGWIN%"=="X" bison --output=configuration-parser.c -v -d -S "%CYGWIN%\share\bison.simple" -p cfg configuration-parser.y \
- if "X%CYGWIN%"=="X" bison --output=configuration-parser.c -v -d -S "C:\Program Files\Cygnus\share\bison.simple" -p cfg configuration-parser.y
+ if "X%CYGWIN%"=="X" bison --output=configuration-parser.c -v -d -S "C:\Program Files\Cygnus\share\bison.simple" -p cfg configuration-parser.y \
+
"configuration-parser.c" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
$(BuildCmds)
@@ -795,7 +796,8 @@ InputPath=".\configuration-parser.y"
BuildCmds= \
if not"X%CYGWIN%"=="X" bison --output=configuration-parser.c -v -d -S "%CYGWIN%\share\bison.simple" -p cfg configuration-parser.y \
- if "X%CYGWIN%"=="X" bison --output=configuration-parser.c -v -d -S "C:\Program Files\Cygnus\share\bison.simple" -p cfg configuration-parser.y
+ if "X%CYGWIN%"=="X" bison --output=configuration-parser.c -v -d -S "C:\Program Files\Cygnus\share\bison.simple" -p cfg configuration-parser.y \
+
"configuration-parser.c" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
$(BuildCmds)
@@ -818,7 +820,7 @@ InputPath=.\ext\standard\parsedate.y
"ext\standard\parsedate.c" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
cd ext\standard
- if not "X%CYGWIN%"=="X" bison --output=parsedate.c -v -d -S "%CYGWIN%\share\bison.simple" parsedate.y \
+ if not "X%CYGWIN%"=="X" bison --output=parsedate.c -v -d -S "%CYGWIN%\share\bison.simple" parsedate.y
if "X%CYGWIN%"=="X" bison --output=parsedate.c -v -d -S "C:\Program Files\Cygnus\share\bison.simple" parsedate.y
# End Custom Build
diff --git a/regex/regex_extra.h b/regex/regex_extra.h
index b839ddc2ad..511df57f67 100644
--- a/regex/regex_extra.h
+++ b/regex/regex_extra.h
@@ -6,9 +6,13 @@
#if (defined(REGEX) && REGEX == 1) || (!defined(REGEX))
+#if !(WIN32|WINNT)
+
#define regexec php_regexec
#define regerror php_regerror
#define regfree php_regfree
#define regcomp php_regcomp
#endif
+
+#endif