diff --git a/widget/src/xpwidgets/nsXIFFormatConverter.cpp b/widget/src/xpwidgets/nsXIFFormatConverter.cpp index 33279ddea8bc..c0ad82268c60 100644 --- a/widget/src/xpwidgets/nsXIFFormatConverter.cpp +++ b/widget/src/xpwidgets/nsXIFFormatConverter.cpp @@ -22,7 +22,7 @@ #include "nsRepository.h" // These are temporary -#ifdef XP_UNIX +#if defined(XP_UNIX) || defined(XP_MAC) #include #endif @@ -30,11 +30,6 @@ #include #endif -#ifdef XP_MAC -#include -#include -#endif - // XIF convertor stuff #include "nsIParser.h" #include "nsParserCIID.h" @@ -284,14 +279,7 @@ NS_IMETHODIMP nsXIFFormatConverter::ConvertFromXIFToHTML(const nsString & aFromS rv = NS_New_HTML_ContentSinkStream(&sink,PR_FALSE,PR_FALSE); - ostrstream* copyStream; - -#ifdef XP_MAC - copyStream = new stringstream; -#else - copyStream = new ostrstream; -#endif - + ostrstream* copyStream = new ostrstream; ((nsHTMLContentSinkStream*)sink)->SetOutputStream(*copyStream); if (NS_OK == rv) {