Commit ffc46d90 authored by kmcclusk%netscape.com's avatar kmcclusk%netscape.com
Browse files

Added the <strstream.h> for all non WIN32 platforms. Removed the ifdef WIN32 in DoCopy

parent d7d15bfa
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -40,6 +40,8 @@

#if defined(WIN32)
#include <strstrea.h>
#else
#include <strstream.h>
#endif

#if defined(WIN32)
@@ -1310,7 +1312,6 @@ nsBrowserWindow::DoDebugSave()
void
nsBrowserWindow::DoCopy()
{
#ifdef WIN32
  nsIPresShell* shell = GetPresShell();
  if (nsnull != shell) {
    nsIDocument* doc = shell->GetDocument();
@@ -1345,7 +1346,7 @@ nsBrowserWindow::DoCopy()
          NS_IF_RELEASE(sink);
          char* str = data.str();

//#if defined(WIN32)
#if defined(WIN32)
          HGLOBAL     hGlobalMemory;
          PSTR        pGlobalMemory;

@@ -1371,7 +1372,7 @@ nsBrowserWindow::DoCopy()
          }
          // in ostrstreams if you cal the str() function
          // then you are responsible for deleting the string
//#endif
#endif
          if (str) delete str;

        }
@@ -1379,7 +1380,6 @@ nsBrowserWindow::DoCopy()
      }
    }
  }
#endif
}