disable use of #pragma interface under Mac OS X

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@16895 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Gilles Depeyrot
2002-08-31 22:31:03 +00:00
parent 6c5672c0d4
commit 788233da90
26 changed files with 29 additions and 27 deletions

View File

@@ -12,7 +12,7 @@
#ifndef __ARTBROWS_H__ #ifndef __ARTBROWS_H__
#define __ARTBROWS_H__ #define __ARTBROWS_H__
#ifdef __GNUG__ #if defined(__GNUG__) && !defined(__APPLE__)
#pragma interface "artbrows.h" #pragma interface "artbrows.h"
#endif #endif

View File

@@ -17,7 +17,7 @@
// headers // headers
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
#ifdef __GNUG__ #if defined(__GNUG__) && !defined(__APPLE__)
#pragma implementation "calendar.cpp" #pragma implementation "calendar.cpp"
#pragma interface "calendar.cpp" #pragma interface "calendar.cpp"
#endif #endif
@@ -32,6 +32,7 @@
// for all others, include the necessary headers // for all others, include the necessary headers
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/app.h" #include "wx/app.h"
#include "wx/log.h"
#include "wx/frame.h" #include "wx/frame.h"
#include "wx/panel.h" #include "wx/panel.h"
#include "wx/stattext.h" #include "wx/stattext.h"

View File

@@ -17,7 +17,7 @@
// headers // headers
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
#ifdef __GNUG__ #if defined(__GNUG__) && !defined(__APPLE__)
#pragma implementation "drawing.cpp" #pragma implementation "drawing.cpp"
#pragma interface "drawing.cpp" #pragma interface "drawing.cpp"
#endif #endif

View File

@@ -9,7 +9,7 @@
// Licence: wxWindows license // Licence: wxWindows license
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
#ifdef __GNUG__ #if defined(__GNUG__) && !defined(__APPLE__)
#pragma implementation "dynamic.cpp" #pragma implementation "dynamic.cpp"
#pragma interface "dynamic.cpp" #pragma interface "dynamic.cpp"
#endif #endif

View File

@@ -17,7 +17,7 @@
// headers // headers
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
#ifdef __GNUG__ #if defined(__GNUG__) && !defined(__APPLE__)
#pragma implementation "erase.cpp" #pragma implementation "erase.cpp"
#pragma interface "erase.cpp" #pragma interface "erase.cpp"
#endif #endif

View File

@@ -17,7 +17,7 @@
// headers // headers
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
#ifdef __GNUG__ #if defined(__GNUG__) && !defined(__APPLE__)
// DO NOT use event.cpp here, it breaks statics initialization in // DO NOT use event.cpp here, it breaks statics initialization in
// src/common/event.cpp and nothing works at all then! // src/common/event.cpp and nothing works at all then!
#pragma implementation "eventsample.cpp" #pragma implementation "eventsample.cpp"

View File

@@ -17,7 +17,7 @@
// headers // headers
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
#ifdef __GNUG__ #if defined(__GNUG__) && !defined(__APPLE__)
#pragma implementation "exec.cpp" #pragma implementation "exec.cpp"
#pragma interface "exec.cpp" #pragma interface "exec.cpp"
#endif #endif
@@ -33,6 +33,7 @@
// need because it includes almost all "standard" wxWindows headers // need because it includes almost all "standard" wxWindows headers
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/app.h" #include "wx/app.h"
#include "wx/log.h"
#include "wx/frame.h" #include "wx/frame.h"
#include "wx/panel.h" #include "wx/panel.h"

View File

@@ -3,7 +3,7 @@
// Purpose: wxHtml testing example // Purpose: wxHtml testing example
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
#ifdef __GNUG__ #if defined(__GNUG__) && !defined(__APPLE__)
#pragma implementation "test.cpp" #pragma implementation "test.cpp"
#pragma interface "test.cpp" #pragma interface "test.cpp"
#endif #endif

View File

@@ -1,10 +1,9 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: test.cpp // Name: test.cpp
// Purpose: wxHtml testing example // Purpose: wxHtml testing example
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
#ifdef __GNUG__ #if defined(__GNUG__) && !defined(__APPLE__)
#pragma implementation "help.cpp" #pragma implementation "help.cpp"
#pragma interface "help.cpp" #pragma interface "help.cpp"
#endif #endif

View File

@@ -6,7 +6,7 @@
// standalone help browser. // standalone help browser.
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
#ifdef __GNUG__ #if defined(__GNUG__) && !defined(__APPLE__)
#pragma implementation "help.cpp" #pragma implementation "help.cpp"
#pragma interface "help.cpp" #pragma interface "help.cpp"
#endif #endif

View File

@@ -3,7 +3,7 @@
// Purpose: wxHtml testing example // Purpose: wxHtml testing example
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
#ifdef __GNUG__ #if defined(__GNUG__) && !defined(__APPLE__)
#pragma implementation "test.cpp" #pragma implementation "test.cpp"
#pragma interface "test.cpp" #pragma interface "test.cpp"
#endif #endif

View File

@@ -4,7 +4,7 @@
// demonstrates virtual file systems feature // demonstrates virtual file systems feature
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
#ifdef __GNUG__ #if defined(__GNUG__) && !defined(__APPLE__)
#pragma implementation "test.cpp" #pragma implementation "test.cpp"
#pragma interface "test.cpp" #pragma interface "test.cpp"
#endif #endif

View File

@@ -4,7 +4,7 @@
// demonstrates virtual file systems feature // demonstrates virtual file systems feature
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
#ifdef __GNUG__ #if defined(__GNUG__) && !defined(__APPLE__)
#pragma implementation "test.cpp" #pragma implementation "test.cpp"
#pragma interface "test.cpp" #pragma interface "test.cpp"
#endif #endif

View File

@@ -3,7 +3,7 @@
// Purpose: wxHtml testing example // Purpose: wxHtml testing example
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
#ifdef __GNUG__ #if defined(__GNUG__) && !defined(__APPLE__)
#pragma implementation "test.cpp" #pragma implementation "test.cpp"
#pragma interface "test.cpp" #pragma interface "test.cpp"
#endif #endif

View File

@@ -9,7 +9,7 @@
// Licence: wxWindows license // Licence: wxWindows license
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
#ifdef __GNUG__ #if defined(__GNUG__) && !defined(__APPLE__)
#pragma implementation #pragma implementation
#pragma interface #pragma interface
#endif #endif

View File

@@ -9,7 +9,7 @@
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
#ifdef __GNUG__ #if defined(__GNUG__) && !defined(__APPLE__)
#pragma implementation #pragma implementation
#pragma interface #pragma interface
#endif #endif

View File

@@ -9,7 +9,7 @@
// Licence: wxWindows license // Licence: wxWindows license
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
#ifdef __GNUG__ #if defined( __GNUG__) && !defined(__APPLE__)
#pragma interface #pragma interface
#endif #endif

View File

@@ -9,7 +9,7 @@
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
#ifdef __GNUG__ #if defined(__GNUG__) && !defined(__APPLE__)
#pragma interface #pragma interface
#endif #endif

View File

@@ -9,7 +9,7 @@
// Licence: wxWindows license // Licence: wxWindows license
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
#ifdef __GNUG__ #if defined(__GNUG__) && !defined(__APPLE__)
#pragma interface "proplist_sample.h" #pragma interface "proplist_sample.h"
#endif #endif

View File

@@ -16,7 +16,7 @@
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// headers // headers
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
#ifdef __GNUG__ #if defined(__GNUG__) && !defined(__APPLE__)
#pragma implementation "propsize.cpp" #pragma implementation "propsize.cpp"
#pragma interface "propsize.cpp" #pragma interface "propsize.cpp"
#endif #endif

View File

@@ -17,7 +17,7 @@
// headers // headers
// -------------------------------------------------------------------------- // --------------------------------------------------------------------------
#ifdef __GNUG__ #if defined(__GNUG__) && !defined(__APPLE__)
# pragma implementation "client.cpp" # pragma implementation "client.cpp"
# pragma interface "client.cpp" # pragma interface "client.cpp"
#endif #endif

View File

@@ -17,7 +17,7 @@
// headers // headers
// -------------------------------------------------------------------------- // --------------------------------------------------------------------------
#ifdef __GNUG__ #if defined(__GNUG__) && !defined(__APPLE__)
# pragma implementation "server.cpp" # pragma implementation "server.cpp"
# pragma interface "server.cpp" # pragma interface "server.cpp"
#endif #endif

View File

@@ -31,6 +31,7 @@
// for all others, include the necessary headers // for all others, include the necessary headers
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/app.h" #include "wx/app.h"
#include "wx/log.h"
#include "wx/frame.h" #include "wx/frame.h"
#include "wx/statusbr.h" #include "wx/statusbr.h"
#include "wx/timer.h" #include "wx/timer.h"

View File

@@ -17,10 +17,10 @@
#endif #endif
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include <wx/wx.h> #include "wx/wx.h"
#endif #endif
#include <wx/msw/taskbar.h> #include "wx/msw/taskbar.h"
#include "tbtest.h" #include "tbtest.h"
// Declare two frames // Declare two frames

View File

@@ -9,7 +9,7 @@
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
#ifdef __GNUG__ #if defined(__GNUG__) && !defined(__APPLE__)
#pragma interface "typetest.h" #pragma interface "typetest.h"
#endif #endif

View File

@@ -17,7 +17,7 @@
// headers // headers
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
#ifdef __GNUG__ #if defined(__GNUG__) && !defined(__APPLE__)
#pragma implementation "wizard.cpp" #pragma implementation "wizard.cpp"
#pragma interface "wizard.cpp" #pragma interface "wizard.cpp"
#endif #endif