From 685aded8fd11ec661faa5d90eeadf3089385a0bd Mon Sep 17 00:00:00 2001 From: Gilles Depeyrot Date: Sun, 22 Jul 2001 14:08:55 +0000 Subject: [PATCH] corrections for Mac OS X compilation git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11142 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- demos/bombs/bombs.cpp | 2 +- demos/poem/wxpoem.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/demos/bombs/bombs.cpp b/demos/bombs/bombs.cpp index cdf7b8570d..bbd4cda7ee 100644 --- a/demos/bombs/bombs.cpp +++ b/demos/bombs/bombs.cpp @@ -24,7 +24,7 @@ #include #include -#if defined(__WXGTK__) || defined(__WXMOTIF__) +#if defined(__WXGTK__) || defined(__WXMOTIF__) || defined(__WXMAC__) #include "bombs.xpm" #endif diff --git a/demos/poem/wxpoem.cpp b/demos/poem/wxpoem.cpp index 3a12a83581..23bc9b7eb5 100644 --- a/demos/poem/wxpoem.cpp +++ b/demos/poem/wxpoem.cpp @@ -33,7 +33,7 @@ #include "wxpoem.h" -#if defined(__WXGTK__) || defined(__WXMOTIF__) +#if defined(__WXGTK__) || defined(__WXMOTIF__) || defined(__WXMAC__) #include "corner1.xpm" #include "corner2.xpm" #include "corner3.xpm" @@ -236,7 +236,7 @@ void MainWindow::ScanBuffer(wxDC *dc, bool DrawIt, int *max_x, int *max_y) while (ch != 0 && !page_break) { j = 0; -#ifdef __WXMSW__ +#if defined(__WXMSW__) || defined(__WXMAC__) while (((ch = poem_buffer[i]) != 13) && (ch != 0)) #else while (((ch = poem_buffer[i]) != 10) && (ch != 0)) @@ -247,7 +247,7 @@ void MainWindow::ScanBuffer(wxDC *dc, bool DrawIt, int *max_x, int *max_y) i ++; } -#ifdef __WXMSW__ +#if defined(__WXMSW__) || defined(__WXMAC__) if (ch == 13) #else if (ch == 10) @@ -650,7 +650,7 @@ bool MyApp::OnInit() Corner3 = new wxIcon("icon_3"); Corner4 = new wxIcon("icon_4"); #endif -#if defined(__WXGTK__) || defined(__WXMOTIF__) +#if defined(__WXGTK__) || defined(__WXMOTIF__) || defined(__WXMAC__) Corner1 = new wxIcon( corner1_xpm ); Corner2 = new wxIcon( corner2_xpm ); Corner3 = new wxIcon( corner3_xpm ); -- 2.45.2