Fix for possible build breakage on Mac.

This commit is contained in:
mscott%netscape.com 2000-02-03 02:48:43 +00:00
parent bdac79a3a7
commit bf3072d449
2 changed files with 4 additions and 4 deletions

View File

@ -555,7 +555,8 @@ nsMsgAttachmentHandler::SnarfAttachment(nsMsgCompFields *compFields)
char *separator; char *separator;
nsInputStream inputFile(nsFileSpec(url_string)); nsInputStream inputFile(nsFileSpec(url_string));
if (!inputFile.Exists()) #ifdef RICHIE_APPLE_DOUBLE
if (!inputFile.exists())
return NS_ERROR_OUT_OF_MEMORY; return NS_ERROR_OUT_OF_MEMORY;
separator = mime_make_separator("ad"); separator = mime_make_separator("ad");
@ -579,8 +580,6 @@ nsMsgAttachmentHandler::SnarfAttachment(nsMsgCompFields *compFields)
// location, then patch the new file spec into the array and send this // location, then patch the new file spec into the array and send this
// file instead. // file instead.
// //
#ifdef RICHIE_APPLE_DOUBLE
AppleDoubleEncodeObject *obj = new (AppleDoubleEncodeObject); AppleDoubleEncodeObject *obj = new (AppleDoubleEncodeObject);
if (obj == NULL) if (obj == NULL)
{ {

View File

@ -32,10 +32,11 @@
// Forward declarations... // Forward declarations...
class nsMsgComposeAndSend; class nsMsgComposeAndSend;
#ifdef XP_MAC #ifdef RICH_XP_MAC
#include "nsFileStream.h" #include "nsFileStream.h"
typedef appledouble_encode_object;
typedef struct _AppledoubleEncodeObject typedef struct _AppledoubleEncodeObject
{ {
appledouble_encode_object ap_encode_obj; appledouble_encode_object ap_encode_obj;