]> git.saurik.com Git - wxWidgets.git/commitdiff
disable use of #pragma interface under Mac OS X
authorGilles Depeyrot <gilles_depeyrot@mac.com>
Tue, 3 Sep 2002 19:17:56 +0000 (19:17 +0000)
committerGilles Depeyrot <gilles_depeyrot@mac.com>
Tue, 3 Sep 2002 19:17:56 +0000 (19:17 +0000)
GNU compiler included with Mac OS X 10.2 (Jaguar) as well as August Developer
Tools update contain a bug concerning #pragma interface handling that can only
be worked around by not using them (and they are not necessary anyways)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16953 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/mobile/styles/styles.cpp
samples/mobile/styles/styles.h
samples/mobile/wxedit/wxedit.h

index f1023b27e56bd6e74886acd7baf2071a56428882..cf72c737860a54dfd22115fc5886b83d6da95a85 100644 (file)
@@ -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 );
     
index 88b4944ef3d530b6e2fdc12b7b4af40925da9115..b3c5dfafb1ecbd878611e2e336062b57c01fa27b 100644 (file)
@@ -7,7 +7,7 @@
 #ifndef __styles_H__
 #define __styles_H__
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(__APPLE__)
     #pragma interface "styles.cpp"
 #endif
 
index 1d4ea9c79bf32785e23e20f86d1a9d5a2cf4fd23..0f98fcf0f1618bbb1b23970b8647e5c74e045a08 100644 (file)
@@ -7,7 +7,7 @@
 #ifndef __wxedit_H__
 #define __wxedit_H__
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(__APPLE__)
     #pragma interface "wxedit.cpp"
 #endif