diff --git a/samples/mobile/styles/styles.cpp b/samples/mobile/styles/styles.cpp index f1023b27e5..cf72c73786 100644 --- a/samples/mobile/styles/styles.cpp +++ b/samples/mobile/styles/styles.cpp @@ -16,6 +16,8 @@ #pragma hdrstop #endif +#include "wx/image.h" + // Include private headers #include "styles.h" @@ -38,7 +40,6 @@ MyFrame::MyFrame( wxWindow *parent, wxWindowID id, const wxString &title, CreateStatusBar(1); SetStatusText( "Welcome to Styles!" ); - wxImage image; image.LoadFile( "marble.jpg", wxBITMAP_TYPE_JPEG ); diff --git a/samples/mobile/styles/styles.h b/samples/mobile/styles/styles.h index 88b4944ef3..b3c5dfafb1 100644 --- a/samples/mobile/styles/styles.h +++ b/samples/mobile/styles/styles.h @@ -7,7 +7,7 @@ #ifndef __styles_H__ #define __styles_H__ -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(__APPLE__) #pragma interface "styles.cpp" #endif diff --git a/samples/mobile/wxedit/wxedit.h b/samples/mobile/wxedit/wxedit.h index 1d4ea9c79b..0f98fcf0f1 100644 --- a/samples/mobile/wxedit/wxedit.h +++ b/samples/mobile/wxedit/wxedit.h @@ -7,7 +7,7 @@ #ifndef __wxedit_H__ #define __wxedit_H__ -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(__APPLE__) #pragma interface "wxedit.cpp" #endif