summaryrefslogtreecommitdiff
path: root/ext/standard/mail.c
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2000-02-10 21:53:56 +0000
committerAndi Gutmans <andi@php.net>2000-02-10 21:53:56 +0000
commit29280bb9ecbc459c0005a48001f5dd1a62963cd6 (patch)
treec9cc25e5e1a10ec30c8ab4b7637d2af05e108eb9 /ext/standard/mail.c
parent732eeeabd9032537ddef3a6c8ef83064501c463f (diff)
downloadphp-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.c10
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"));