diff options
author | Zeev Suraski <zeev@php.net> | 2000-02-11 15:59:30 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 2000-02-11 15:59:30 +0000 |
commit | 80bdd19e031ca0dac2dfd4cb62ff43558d477663 (patch) | |
tree | 539fd5059d50e32acf9b991354d48cbcecb16426 /ext/standard/mail.c | |
parent | 80f4886c5a71b0cdc4a3159297160e30ddd298cb (diff) | |
download | php-git-80bdd19e031ca0dac2dfd4cb62ff43558d477663.tar.gz |
Fine tune Andi's patch
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 ebb20bf660..18d9a68b83 100644 --- a/ext/standard/mail.c +++ b/ext/standard/mail.c @@ -22,14 +22,14 @@ #include <ctype.h> #include <stdio.h> #include "php.h" -#if !PHP_WIN32 +#if !defined(PHP_WIN32) #include "build-defs.h" #endif #include "php_mail.h" #include "php_ini.h" #if HAVE_SENDMAIL -#if PHP_WIN32 +#ifdef 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 PHP_WIN32 +#ifdef 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 PHP_WIN32 +#ifdef 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 PHP_WIN32 +#ifdef PHP_WIN32 PUTS("Internal Sendmail support for Windows 4"); #else php_printf("Path to sendmail: <tt>%s</tt>", INI_STR("sendmail_path")); |