diff options
author | Andi Gutmans <andi@php.net> | 2000-02-10 21:53:56 +0000 |
---|---|---|
committer | Andi Gutmans <andi@php.net> | 2000-02-10 21:53:56 +0000 |
commit | 29280bb9ecbc459c0005a48001f5dd1a62963cd6 (patch) | |
tree | c9cc25e5e1a10ec30c8ab4b7637d2af05e108eb9 /ext/standard/mail.c | |
parent | 732eeeabd9032537ddef3a6c8ef83064501c463f (diff) | |
download | php-git-29280bb9ecbc459c0005a48001f5dd1a62963cd6.tar.gz |
- Get rid of some more evil MSVC5's and switch standard/ to use PHP_WIN32
Diffstat (limited to 'ext/standard/mail.c')
-rw-r--r-- | ext/standard/mail.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/standard/mail.c b/ext/standard/mail.c index d87861a605..ebb20bf660 100644 --- a/ext/standard/mail.c +++ b/ext/standard/mail.c @@ -22,14 +22,14 @@ #include <ctype.h> #include <stdio.h> #include "php.h" -#ifndef MSVC5 +#if !PHP_WIN32 #include "build-defs.h" #endif #include "php_mail.h" #include "php_ini.h" #if HAVE_SENDMAIL -#if MSVC5 +#if PHP_WIN32 #include "win32/sendmail.h" #endif @@ -102,7 +102,7 @@ PHP_FUNCTION(mail) int php_mail(char *to, char *subject, char *message, char *headers) { -#if MSVC5 +#if PHP_WIN32 int tsm_err; #else FILE *sendmail; @@ -110,7 +110,7 @@ int php_mail(char *to, char *subject, char *message, char *headers) char *sendmail_path = INI_STR("sendmail_path"); #endif -#if MSVC5 +#if PHP_WIN32 if (TSendMail(INI_STR("SMTP"), &tsm_err, headers, subject, to, message) != SUCCESS){ php_error(E_WARNING, GetSMErrorText(tsm_err)); return 0; @@ -144,7 +144,7 @@ int php_mail(char *to, char *subject, char *message, char *headers) PHP_MINFO_FUNCTION(mail) { -#if MSVC5 +#if PHP_WIN32 PUTS("Internal Sendmail support for Windows 4"); #else php_printf("Path to sendmail: <tt>%s</tt>", INI_STR("sendmail_path")); |