X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/74b28d5cc8649be692d635a91f99863fb287a5c4..d15040492413b54a530b5a291b26750f3d265d23:/samples/richedit/wxLayout.cpp diff --git a/samples/richedit/wxLayout.cpp b/samples/richedit/wxLayout.cpp index 7ba8765da9..89fe57e094 100644 --- a/samples/richedit/wxLayout.cpp +++ b/samples/richedit/wxLayout.cpp @@ -11,7 +11,7 @@ #pragma implementation "wxLayout.h" #endif -#include +#include "wx/wxprec.h" #ifdef __BORLANDC__ # pragma hdrstop #endif @@ -20,7 +20,11 @@ #include #include -#include +#if wxUSE_IOSTREAMH + #include +#else + #include +#endif #include "Micon.xpm" @@ -469,7 +473,7 @@ void MyFrame::OnPageSetup(wxCommandEvent& WXUNUSED(event)) #endif wxPageSetupData data; -#ifdef __WXMSW__ +#if defined(__WXMSW__) || defined(__WXMAC__) wxPageSetupDialog pageSetupDialog(this, & data); #else wxGenericPageSetupDialog pageSetupDialog(this, & data); @@ -485,7 +489,7 @@ void MyFrame::OnPrintSetupPS(wxCommandEvent& WXUNUSED(event)) wxPrintData data; -#ifdef __WXMSW__ +#if defined(__WXMSW__) || defined(__WXMAC__) wxPrintDialog printerDialog(this, & data); #else wxGenericPrintDialog printerDialog(this, & data); @@ -498,7 +502,7 @@ void MyFrame::OnPageSetupPS(wxCommandEvent& WXUNUSED(event)) wxGetApp().SetPrintMode(wxPRINT_POSTSCRIPT); wxPageSetupData data; -#ifdef __WXMSW__ +#if defined(__WXMSW__) || defined(__WXMAC__) wxPageSetupDialog pageSetupDialog(this, & data); #else wxGenericPageSetupDialog pageSetupDialog(this, & data);