From 3d1a4878f36ba4b5f66c2ccfd2cb27a9dc528b6f Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Thu, 27 Jan 2005 21:05:47 +0000 Subject: [PATCH] pragma and prec-header patch applied git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31606 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/combobox.cpp | 4 +++- src/mac/carbon/combobxc.cpp | 4 +++- src/mac/carbon/control.cpp | 4 ++-- src/mac/carbon/cursor.cpp | 4 ++-- src/mac/carbon/data.cpp | 2 ++ src/mac/carbon/dataobj.cpp | 3 +-- src/mac/carbon/dcclient.cpp | 4 +++- src/mac/carbon/dcmemory.cpp | 4 +++- src/mac/carbon/dcprint.cpp | 2 +- src/mac/carbon/dcscreen.cpp | 4 +++- src/mac/carbon/dialog.cpp | 4 +++- src/mac/carbon/dirdlg.cpp | 5 +++-- src/mac/carbon/dirmac.cpp | 2 +- src/mac/carbon/display.cpp | 2 +- src/mac/carbon/dnd.cpp | 4 ++-- src/mac/carbon/drawer.cpp | 5 +++-- src/mac/carbon/filedlg.cpp | 5 +++-- src/mac/carbon/fontdlg.cpp | 4 ++-- src/mac/carbon/fontenum.cpp | 2 +- src/mac/carbon/fontutil.cpp | 2 +- src/mac/carbon/frame.cpp | 4 +++- src/mac/carbon/gauge.cpp | 6 ++++-- src/mac/carbon/gdiobj.cpp | 4 +++- src/mac/carbon/glcanvas.cpp | 4 +--- src/mac/carbon/helpxxxx.cpp | 4 +++- src/mac/carbon/hid.cpp | 7 +------ src/mac/carbon/icon.cpp | 4 +++- src/mac/carbon/joystick.cpp | 8 ++++---- src/mac/carbon/listbox.cpp | 4 +++- src/mac/carbon/macnotfy.cpp | 2 ++ src/mac/carbon/mdi.cpp | 4 +++- src/mac/carbon/menu.cpp | 4 +++- src/mac/carbon/menuitem.cpp | 2 ++ src/mac/carbon/metafile.cpp | 6 +----- src/mac/carbon/mimetmac.cpp | 6 +----- src/mac/carbon/minifram.cpp | 4 +++- src/mac/carbon/mpthread.cpp | 2 +- src/mac/carbon/msgdlg.cpp | 4 +++- src/mac/carbon/notebmac.cpp | 4 +++- src/mac/carbon/palette.cpp | 4 ++-- src/mac/carbon/pen.cpp | 5 +++-- src/mac/carbon/pnghand.cpp | 2 +- src/mac/carbon/printdlg.cpp | 4 +++- src/mac/carbon/printmac.cpp | 4 +--- src/mac/carbon/radiobox.cpp | 5 +++-- src/mac/carbon/radiobut.cpp | 4 ++-- src/mac/carbon/region.cpp | 4 +++- src/mac/carbon/scrolbar.cpp | 4 ++-- src/mac/carbon/settings.cpp | 4 +++- src/mac/carbon/slider.cpp | 4 ++-- src/mac/carbon/sound.cpp | 4 +++- src/mac/carbon/spinbutt.cpp | 4 ++-- src/mac/carbon/spinctrl.cpp | 2 +- src/mac/carbon/statbmp.cpp | 4 ++-- src/mac/carbon/statbox.cpp | 4 ++-- src/mac/carbon/statbrma.cpp | 4 +++- src/mac/carbon/statline.cpp | 2 +- src/mac/carbon/statlmac.cpp | 2 +- src/mac/carbon/stattext.cpp | 4 +++- src/mac/carbon/tabctrl.cpp | 4 ++-- src/mac/carbon/taskbar.cpp | 2 -- src/mac/carbon/textctrl.cpp | 4 ++-- src/mac/carbon/tglbtn.cpp | 6 +++--- src/mac/carbon/thread.cpp | 2 +- src/mac/carbon/timer.cpp | 4 +++- src/mac/carbon/toolbar.cpp | 5 +++-- src/mac/carbon/tooltip.cpp | 4 ++-- src/mac/carbon/toplevel.cpp | 2 +- src/mac/carbon/treectrl.cpp | 4 +++- src/mac/carbon/uma.cpp | 2 +- src/mac/carbon/utils.cpp | 5 +++-- src/mac/carbon/utilsexc.cpp | 4 ---- src/mac/carbon/window.cpp | 5 +++-- 73 files changed, 160 insertions(+), 120 deletions(-) diff --git a/src/mac/carbon/combobox.cpp b/src/mac/carbon/combobox.cpp index e38374b2cc..7e6da680cf 100644 --- a/src/mac/carbon/combobox.cpp +++ b/src/mac/carbon/combobox.cpp @@ -9,10 +9,12 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "combobox.h" #endif +#include "wx/wxprec.h" + #include "wx/combobox.h" #include "wx/button.h" #include "wx/menu.h" diff --git a/src/mac/carbon/combobxc.cpp b/src/mac/carbon/combobxc.cpp index 3bf9fce05d..fcbdd47b6b 100644 --- a/src/mac/carbon/combobxc.cpp +++ b/src/mac/carbon/combobxc.cpp @@ -9,10 +9,12 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "combobox.h" #endif +#include "wx/wxprec.h" + #include "wx/combobox.h" #include "wx/button.h" #include "wx/menu.h" diff --git a/src/mac/carbon/control.cpp b/src/mac/carbon/control.cpp index e7fa4ffe52..66c8c8f7c5 100644 --- a/src/mac/carbon/control.cpp +++ b/src/mac/carbon/control.cpp @@ -9,11 +9,11 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "control.h" #endif -#include "wx/defs.h" +#include "wx/wxprec.h" #include "wx/control.h" #include "wx/panel.h" diff --git a/src/mac/carbon/cursor.cpp b/src/mac/carbon/cursor.cpp index dc9ae3abe9..eace8c0b5d 100644 --- a/src/mac/carbon/cursor.cpp +++ b/src/mac/carbon/cursor.cpp @@ -9,11 +9,11 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "cursor.h" #endif -#include "wx/defs.h" +#include "wx/wxprec.h" #include "wx/app.h" #include "wx/cursor.h" diff --git a/src/mac/carbon/data.cpp b/src/mac/carbon/data.cpp index 1f0bea00d2..844ac0a4b9 100644 --- a/src/mac/carbon/data.cpp +++ b/src/mac/carbon/data.cpp @@ -9,6 +9,8 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// +#include "wx/wxprec.h" + #include "wx/event.h" #if wxUSE_SHARED_LIBRARY diff --git a/src/mac/carbon/dataobj.cpp b/src/mac/carbon/dataobj.cpp index bec4f2bd60..c7f7eb3961 100644 --- a/src/mac/carbon/dataobj.cpp +++ b/src/mac/carbon/dataobj.cpp @@ -17,7 +17,7 @@ // headers // ---------------------------------------------------------------------------- -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "dataobj.h" #endif @@ -27,7 +27,6 @@ #ifndef WX_PRECOMP #include "wx/intl.h" #endif -#include "wx/defs.h" #include "wx/log.h" #include "wx/dataobj.h" diff --git a/src/mac/carbon/dcclient.cpp b/src/mac/carbon/dcclient.cpp index 59657f38f5..9e35a5d561 100644 --- a/src/mac/carbon/dcclient.cpp +++ b/src/mac/carbon/dcclient.cpp @@ -9,10 +9,12 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "dcclient.h" #endif +#include "wx/wxprec.h" + #include "wx/dcclient.h" #include "wx/dcmemory.h" #include "wx/region.h" diff --git a/src/mac/carbon/dcmemory.cpp b/src/mac/carbon/dcmemory.cpp index e850a59e4d..5cf3336129 100644 --- a/src/mac/carbon/dcmemory.cpp +++ b/src/mac/carbon/dcmemory.cpp @@ -9,10 +9,12 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "dcmemory.h" #endif +#include "wx/wxprec.h" + #include "wx/dcmemory.h" #include "wx/mac/private.h" diff --git a/src/mac/carbon/dcprint.cpp b/src/mac/carbon/dcprint.cpp index 85bc466970..aa3af95619 100644 --- a/src/mac/carbon/dcprint.cpp +++ b/src/mac/carbon/dcprint.cpp @@ -9,7 +9,7 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "dcprint.h" #endif diff --git a/src/mac/carbon/dcscreen.cpp b/src/mac/carbon/dcscreen.cpp index 6ed78b6353..437e612a3a 100644 --- a/src/mac/carbon/dcscreen.cpp +++ b/src/mac/carbon/dcscreen.cpp @@ -9,10 +9,12 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "dcscreen.h" #endif +#include "wx/wxprec.h" + #include "wx/dcscreen.h" #include "wx/mac/uma.h" diff --git a/src/mac/carbon/dialog.cpp b/src/mac/carbon/dialog.cpp index cc581e9bf4..832ff9bc39 100644 --- a/src/mac/carbon/dialog.cpp +++ b/src/mac/carbon/dialog.cpp @@ -9,10 +9,12 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "dialog.h" #endif +#include "wx/wxprec.h" + #include "wx/dialog.h" #include "wx/utils.h" #include "wx/frame.h" diff --git a/src/mac/carbon/dirdlg.cpp b/src/mac/carbon/dirdlg.cpp index 9b01d3e236..259eba0f11 100644 --- a/src/mac/carbon/dirdlg.cpp +++ b/src/mac/carbon/dirdlg.cpp @@ -9,11 +9,12 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "dirdlg.h" #endif -#include "wx/defs.h" +#include "wx/wxprec.h" + #include "wx/utils.h" #include "wx/dialog.h" #include "wx/dirdlg.h" diff --git a/src/mac/carbon/dirmac.cpp b/src/mac/carbon/dirmac.cpp index b6525e7951..e9df6eedac 100644 --- a/src/mac/carbon/dirmac.cpp +++ b/src/mac/carbon/dirmac.cpp @@ -17,7 +17,7 @@ // headers // ---------------------------------------------------------------------------- -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "dir.h" #endif diff --git a/src/mac/carbon/display.cpp b/src/mac/carbon/display.cpp index 313c2f26cc..8c6bc2b09e 100644 --- a/src/mac/carbon/display.cpp +++ b/src/mac/carbon/display.cpp @@ -9,7 +9,7 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "display.h" #endif diff --git a/src/mac/carbon/dnd.cpp b/src/mac/carbon/dnd.cpp index c4f3c8cf63..61db55a7d6 100644 --- a/src/mac/carbon/dnd.cpp +++ b/src/mac/carbon/dnd.cpp @@ -9,11 +9,11 @@ // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "dnd.h" #endif -#include "wx/defs.h" +#include "wx/wxprec.h" #if wxUSE_DRAG_AND_DROP diff --git a/src/mac/carbon/drawer.cpp b/src/mac/carbon/drawer.cpp index 0e77b28702..bcf8785ca2 100644 --- a/src/mac/carbon/drawer.cpp +++ b/src/mac/carbon/drawer.cpp @@ -12,11 +12,12 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "control.h" #endif -#include "wx/defs.h" +#include "wx/wxprec.h" + #include "wx/mac/private.h" #if defined( __WXMAC__ ) && TARGET_API_MAC_OSX && ( MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_2 ) diff --git a/src/mac/carbon/filedlg.cpp b/src/mac/carbon/filedlg.cpp index 8e5b944b57..fc125d5921 100644 --- a/src/mac/carbon/filedlg.cpp +++ b/src/mac/carbon/filedlg.cpp @@ -9,11 +9,12 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "filedlg.h" #endif -#include "wx/defs.h" +#include "wx/wxprec.h" + #include "wx/app.h" #include "wx/utils.h" #include "wx/dialog.h" diff --git a/src/mac/carbon/fontdlg.cpp b/src/mac/carbon/fontdlg.cpp index 9d730720e2..23f99696b1 100644 --- a/src/mac/carbon/fontdlg.cpp +++ b/src/mac/carbon/fontdlg.cpp @@ -17,7 +17,7 @@ // headers // --------------------------------------------------------------------------- -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "fontdlg.h" #endif @@ -93,4 +93,4 @@ int wxFontDialog::ShowModal() return wxID_CANCEL; } -#endif // 10.2+ \ No newline at end of file +#endif // 10.2+ diff --git a/src/mac/carbon/fontenum.cpp b/src/mac/carbon/fontenum.cpp index 467bc95442..9b48a9fbf2 100644 --- a/src/mac/carbon/fontenum.cpp +++ b/src/mac/carbon/fontenum.cpp @@ -17,7 +17,7 @@ // headers // ---------------------------------------------------------------------------- -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "fontenum.h" #endif diff --git a/src/mac/carbon/fontutil.cpp b/src/mac/carbon/fontutil.cpp index 1aa2298245..6318e4a807 100644 --- a/src/mac/carbon/fontutil.cpp +++ b/src/mac/carbon/fontutil.cpp @@ -17,7 +17,7 @@ // headers // ---------------------------------------------------------------------------- -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "fontutil.h" #endif diff --git a/src/mac/carbon/frame.cpp b/src/mac/carbon/frame.cpp index ac1391d4de..d7cc70101e 100644 --- a/src/mac/carbon/frame.cpp +++ b/src/mac/carbon/frame.cpp @@ -9,10 +9,12 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "frame.h" #endif +#include "wx/wxprec.h" + #include "wx/frame.h" #include "wx/statusbr.h" #include "wx/toolbar.h" diff --git a/src/mac/carbon/gauge.cpp b/src/mac/carbon/gauge.cpp index 6f97b03578..1970134e2f 100644 --- a/src/mac/carbon/gauge.cpp +++ b/src/mac/carbon/gauge.cpp @@ -9,14 +9,16 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "gauge.h" #endif -#include "wx/gauge.h" +#include "wx/wxprec.h" #if wxUSE_GAUGE +#include "wx/gauge.h" + #if !USE_SHARED_LIBRARY IMPLEMENT_DYNAMIC_CLASS(wxGauge, wxControl) #endif diff --git a/src/mac/carbon/gdiobj.cpp b/src/mac/carbon/gdiobj.cpp index 528c5a7efe..f0c7133298 100644 --- a/src/mac/carbon/gdiobj.cpp +++ b/src/mac/carbon/gdiobj.cpp @@ -9,10 +9,12 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "gdiobj.h" #endif +#include "wx/wxprec.h" + #include "wx/gdiobj.h" #if !USE_SHARED_LIBRARIES diff --git a/src/mac/carbon/glcanvas.cpp b/src/mac/carbon/glcanvas.cpp index facd34a510..7f44e45910 100644 --- a/src/mac/carbon/glcanvas.cpp +++ b/src/mac/carbon/glcanvas.cpp @@ -9,7 +9,7 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "glcanvas.h" #endif @@ -19,8 +19,6 @@ #pragma hdrstop #endif -#include "wx/setup.h" - #if wxUSE_GLCANVAS #ifndef WX_PRECOMP diff --git a/src/mac/carbon/helpxxxx.cpp b/src/mac/carbon/helpxxxx.cpp index 7d0e4d1531..e330ce2d79 100644 --- a/src/mac/carbon/helpxxxx.cpp +++ b/src/mac/carbon/helpxxxx.cpp @@ -9,10 +9,12 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "helpxxxx.h" #endif +#include "wx/wxprec.h" + #include "wx/stubs/helpxxxx.h" #include diff --git a/src/mac/carbon/hid.cpp b/src/mac/carbon/hid.cpp index feb8e3a260..3d17c726bd 100644 --- a/src/mac/carbon/hid.cpp +++ b/src/mac/carbon/hid.cpp @@ -17,7 +17,7 @@ // headers // --------------------------------------------------------------------------- -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "hid.h" #endif @@ -28,11 +28,6 @@ #pragma hdrstop #endif -#ifndef WX_PRECOMP - #include "wx/defs.h" -#endif - - //DARWIN _ONLY_ #ifdef __DARWIN__ diff --git a/src/mac/carbon/icon.cpp b/src/mac/carbon/icon.cpp index ab1dffe712..25543c1e95 100644 --- a/src/mac/carbon/icon.cpp +++ b/src/mac/carbon/icon.cpp @@ -9,10 +9,12 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "icon.h" #endif +#include "wx/wxprec.h" + #include "wx/icon.h" #if !USE_SHARED_LIBRARIES diff --git a/src/mac/carbon/joystick.cpp b/src/mac/carbon/joystick.cpp index 156b9b2657..8136d9e59b 100644 --- a/src/mac/carbon/joystick.cpp +++ b/src/mac/carbon/joystick.cpp @@ -9,16 +9,16 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "joystick.h" #endif -#include "wx/setup.h" - -#include "wx/joystick.h" +#include "wx/wxprec.h" #if wxUSE_JOYSTICK +#include "wx/joystick.h" + IMPLEMENT_DYNAMIC_CLASS(wxJoystick, wxObject) // Attributes diff --git a/src/mac/carbon/listbox.cpp b/src/mac/carbon/listbox.cpp index 502651c1a4..7c8ca90473 100644 --- a/src/mac/carbon/listbox.cpp +++ b/src/mac/carbon/listbox.cpp @@ -9,10 +9,12 @@ // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "listbox.h" #endif +#include "wx/wxprec.h" + #include "wx/app.h" #include "wx/listbox.h" #include "wx/button.h" diff --git a/src/mac/carbon/macnotfy.cpp b/src/mac/carbon/macnotfy.cpp index 2962de20f5..08d304bb49 100644 --- a/src/mac/carbon/macnotfy.cpp +++ b/src/mac/carbon/macnotfy.cpp @@ -7,6 +7,8 @@ * ------------------------------------------------------------------------- */ +#include "wx/wxprec.h" + #include "wx/wx.h" #include "wx/mac/private.h" diff --git a/src/mac/carbon/mdi.cpp b/src/mac/carbon/mdi.cpp index 542a76cdc7..fa7f6c0b61 100644 --- a/src/mac/carbon/mdi.cpp +++ b/src/mac/carbon/mdi.cpp @@ -9,10 +9,12 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "mdi.h" #endif +#include "wx/wxprec.h" + #include "wx/mdi.h" #include "wx/menu.h" #include "wx/settings.h" diff --git a/src/mac/carbon/menu.cpp b/src/mac/carbon/menu.cpp index c31a56fb59..7b596771ad 100644 --- a/src/mac/carbon/menu.cpp +++ b/src/mac/carbon/menu.cpp @@ -9,7 +9,7 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "menu.h" #pragma implementation "menuitem.h" #endif @@ -21,6 +21,8 @@ // wxWidgets headers // ----------------- +#include "wx/wxprec.h" + #include "wx/app.h" #include "wx/menu.h" #include "wx/menuitem.h" diff --git a/src/mac/carbon/menuitem.cpp b/src/mac/carbon/menuitem.cpp index e1062e4597..1d27c95fbf 100644 --- a/src/mac/carbon/menuitem.cpp +++ b/src/mac/carbon/menuitem.cpp @@ -13,6 +13,8 @@ // headers & declarations // ============================================================================ +#include "wx/wxprec.h" + #include "wx/app.h" #include "wx/menu.h" #include "wx/menuitem.h" diff --git a/src/mac/carbon/metafile.cpp b/src/mac/carbon/metafile.cpp index 594fe43af5..b5e3e7c779 100644 --- a/src/mac/carbon/metafile.cpp +++ b/src/mac/carbon/metafile.cpp @@ -9,7 +9,7 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "metafile.h" #endif @@ -20,10 +20,6 @@ #pragma hdrstop #endif -#ifndef WX_PRECOMP -#include "wx/setup.h" -#endif - #if wxUSE_METAFILE #ifndef WX_PRECOMP diff --git a/src/mac/carbon/mimetmac.cpp b/src/mac/carbon/mimetmac.cpp index 1ea83612c2..29449a6b60 100644 --- a/src/mac/carbon/mimetmac.cpp +++ b/src/mac/carbon/mimetmac.cpp @@ -9,7 +9,7 @@ // Licence: wxWindows licence (part of wxExtra library) ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "mimetype.h" #endif @@ -20,10 +20,6 @@ #pragma hdrstop #endif -#ifndef WX_PRECOMP - #include "wx/defs.h" -#endif - #ifndef WX_PRECOMP #include "wx/string.h" #if wxUSE_GUI diff --git a/src/mac/carbon/minifram.cpp b/src/mac/carbon/minifram.cpp index 6b49b9bdc7..5b2561f52b 100644 --- a/src/mac/carbon/minifram.cpp +++ b/src/mac/carbon/minifram.cpp @@ -9,10 +9,12 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "minifram.h" #endif +#include "wx/wxprec.h" + #include "wx/minifram.h" #if !USE_SHARED_LIBRARY diff --git a/src/mac/carbon/mpthread.cpp b/src/mac/carbon/mpthread.cpp index 7eeabfa7a3..fe01a8bdd1 100755 --- a/src/mac/carbon/mpthread.cpp +++ b/src/mac/carbon/mpthread.cpp @@ -10,7 +10,7 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "thread.h" #endif diff --git a/src/mac/carbon/msgdlg.cpp b/src/mac/carbon/msgdlg.cpp index 6f1cfbfdc6..e0f43288d4 100644 --- a/src/mac/carbon/msgdlg.cpp +++ b/src/mac/carbon/msgdlg.cpp @@ -9,10 +9,12 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "msgdlg.h" #endif +#include "wx/wxprec.h" + #include "wx/app.h" #include "wx/msgdlg.h" #include "wx/intl.h" diff --git a/src/mac/carbon/notebmac.cpp b/src/mac/carbon/notebmac.cpp index fa58eacad7..6f2685f3c0 100644 --- a/src/mac/carbon/notebmac.cpp +++ b/src/mac/carbon/notebmac.cpp @@ -9,7 +9,7 @@ // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "notebook.h" #endif @@ -20,6 +20,8 @@ // ---------------------------------------------------------------------------- // headers // ---------------------------------------------------------------------------- +#include "wx/wxprec.h" + #include "wx/app.h" #include "wx/string.h" #include "wx/log.h" diff --git a/src/mac/carbon/palette.cpp b/src/mac/carbon/palette.cpp index 60a0de6a8a..d3417248c8 100644 --- a/src/mac/carbon/palette.cpp +++ b/src/mac/carbon/palette.cpp @@ -9,11 +9,11 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "palette.h" #endif -#include "wx/defs.h" +#include "wx/wxprec.h" #if wxUSE_PALETTE diff --git a/src/mac/carbon/pen.cpp b/src/mac/carbon/pen.cpp index fea55ab34e..56130732a9 100644 --- a/src/mac/carbon/pen.cpp +++ b/src/mac/carbon/pen.cpp @@ -9,11 +9,12 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "pen.h" #endif -#include "wx/setup.h" +#include "wx/wxprec.h" + #include "wx/utils.h" #include "wx/pen.h" diff --git a/src/mac/carbon/pnghand.cpp b/src/mac/carbon/pnghand.cpp index 3241b88a3a..084f5e4bb8 100644 --- a/src/mac/carbon/pnghand.cpp +++ b/src/mac/carbon/pnghand.cpp @@ -9,7 +9,7 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) # pragma implementation "pngread.h" # pragma implementation "pnghand.h" #endif diff --git a/src/mac/carbon/printdlg.cpp b/src/mac/carbon/printdlg.cpp index 38aa9582ae..e39c6dd133 100644 --- a/src/mac/carbon/printdlg.cpp +++ b/src/mac/carbon/printdlg.cpp @@ -9,10 +9,12 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "printdlg.h" #endif +#include "wx/wxprec.h" + #include "wx/object.h" #include "wx/printdlg.h" #include "wx/mac/printdlg.h" diff --git a/src/mac/carbon/printmac.cpp b/src/mac/carbon/printmac.cpp index f601443a28..834d523ccf 100644 --- a/src/mac/carbon/printmac.cpp +++ b/src/mac/carbon/printmac.cpp @@ -9,7 +9,7 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "printwin.h" #endif @@ -20,8 +20,6 @@ #pragma hdrstop #endif -#include "wx/defs.h" - #ifndef WX_PRECOMP #include "wx/utils.h" #include "wx/dc.h" diff --git a/src/mac/carbon/radiobox.cpp b/src/mac/carbon/radiobox.cpp index 3695edf6ca..2470710782 100644 --- a/src/mac/carbon/radiobox.cpp +++ b/src/mac/carbon/radiobox.cpp @@ -9,7 +9,7 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "radioboxbase.h" #pragma implementation "radiobox.h" #endif @@ -18,7 +18,8 @@ // headers //------------------------------------------------------------------------------------- -#include "wx/defs.h" +#include "wx/wxprec.h" + #include "wx/arrstr.h" #include "wx/radiobox.h" diff --git a/src/mac/carbon/radiobut.cpp b/src/mac/carbon/radiobut.cpp index 1a31f44a25..3fd1a3fae2 100644 --- a/src/mac/carbon/radiobut.cpp +++ b/src/mac/carbon/radiobut.cpp @@ -9,11 +9,11 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "radiobut.h" #endif -#include "wx/defs.h" +#include "wx/wxprec.h" #include "wx/radiobut.h" diff --git a/src/mac/carbon/region.cpp b/src/mac/carbon/region.cpp index aefaa80693..f0054d35bc 100644 --- a/src/mac/carbon/region.cpp +++ b/src/mac/carbon/region.cpp @@ -8,10 +8,12 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "region.h" #endif +#include "wx/wxprec.h" + #include "wx/region.h" #include "wx/gdicmn.h" #include "wx/mac/uma.h" diff --git a/src/mac/carbon/scrolbar.cpp b/src/mac/carbon/scrolbar.cpp index 9098a0ad6d..4dd6127cfb 100644 --- a/src/mac/carbon/scrolbar.cpp +++ b/src/mac/carbon/scrolbar.cpp @@ -9,11 +9,11 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "scrolbar.h" #endif -#include "wx/defs.h" +#include "wx/wxprec.h" #ifndef WX_PRECOMP #include "wx/intl.h" diff --git a/src/mac/carbon/settings.cpp b/src/mac/carbon/settings.cpp index 3ba06cb040..e61c589c69 100644 --- a/src/mac/carbon/settings.cpp +++ b/src/mac/carbon/settings.cpp @@ -9,10 +9,12 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "settings.h" #endif +#include "wx/wxprec.h" + #include "wx/settings.h" #include "wx/gdicmn.h" #include "wx/utils.h" diff --git a/src/mac/carbon/slider.cpp b/src/mac/carbon/slider.cpp index 79f83f1b52..6244a91ddc 100644 --- a/src/mac/carbon/slider.cpp +++ b/src/mac/carbon/slider.cpp @@ -9,11 +9,11 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "slider.h" #endif -#include "wx/defs.h" +#include "wx/wxprec.h" #if wxUSE_SLIDER diff --git a/src/mac/carbon/sound.cpp b/src/mac/carbon/sound.cpp index af1144a5d7..93e36c103c 100644 --- a/src/mac/carbon/sound.cpp +++ b/src/mac/carbon/sound.cpp @@ -9,10 +9,12 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "sound.h" #endif +#include "wx/wxprec.h" + #include "wx/object.h" #include "wx/string.h" #include "wx/log.h" diff --git a/src/mac/carbon/spinbutt.cpp b/src/mac/carbon/spinbutt.cpp index b3fd3830b1..35f00904d4 100644 --- a/src/mac/carbon/spinbutt.cpp +++ b/src/mac/carbon/spinbutt.cpp @@ -9,12 +9,12 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "spinbutt.h" #pragma implementation "spinbuttbase.h" #endif -#include "wx/defs.h" +#include "wx/wxprec.h" #if wxUSE_SPINBTN diff --git a/src/mac/carbon/spinctrl.cpp b/src/mac/carbon/spinctrl.cpp index e1c2f58cbe..40e5211fbd 100644 --- a/src/mac/carbon/spinctrl.cpp +++ b/src/mac/carbon/spinctrl.cpp @@ -12,7 +12,7 @@ #pragma implementation "spinctrl.h" #endif -#include "wx/defs.h" +#include "wx/wxprec.h" #if wxUSE_SPINCTRL diff --git a/src/mac/carbon/statbmp.cpp b/src/mac/carbon/statbmp.cpp index abe7a951b2..cb22a96bed 100644 --- a/src/mac/carbon/statbmp.cpp +++ b/src/mac/carbon/statbmp.cpp @@ -9,11 +9,11 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "statbmp.h" #endif -#include "wx/defs.h" +#include "wx/wxprec.h" #include "wx/statbmp.h" #include "wx/dcclient.h" diff --git a/src/mac/carbon/statbox.cpp b/src/mac/carbon/statbox.cpp index 87ec656d78..c2d3460d41 100644 --- a/src/mac/carbon/statbox.cpp +++ b/src/mac/carbon/statbox.cpp @@ -9,11 +9,11 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "statbox.h" #endif -#include "wx/defs.h" +#include "wx/wxprec.h" #include "wx/statbox.h" #include "wx/mac/uma.h" diff --git a/src/mac/carbon/statbrma.cpp b/src/mac/carbon/statbrma.cpp index 094c4a081d..86a80758d2 100644 --- a/src/mac/carbon/statbrma.cpp +++ b/src/mac/carbon/statbrma.cpp @@ -9,7 +9,7 @@ // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "statbrma.h" #endif @@ -17,6 +17,8 @@ // headers // ---------------------------------------------------------------------------- +#include "wx/wxprec.h" + #include "wx/statusbr.h" #include "wx/dc.h" #include "wx/dcclient.h" diff --git a/src/mac/carbon/statline.cpp b/src/mac/carbon/statline.cpp index 52f3d40733..71db41eddd 100644 --- a/src/mac/carbon/statline.cpp +++ b/src/mac/carbon/statline.cpp @@ -16,7 +16,7 @@ // headers // ---------------------------------------------------------------------------- -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "statline.h" #endif diff --git a/src/mac/carbon/statlmac.cpp b/src/mac/carbon/statlmac.cpp index 34ca6e86cf..92d31f27e2 100644 --- a/src/mac/carbon/statlmac.cpp +++ b/src/mac/carbon/statlmac.cpp @@ -16,7 +16,7 @@ // headers // ---------------------------------------------------------------------------- -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "statline.h" #endif diff --git a/src/mac/carbon/stattext.cpp b/src/mac/carbon/stattext.cpp index 16e9aca2fb..f01e11f666 100644 --- a/src/mac/carbon/stattext.cpp +++ b/src/mac/carbon/stattext.cpp @@ -9,10 +9,12 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "stattext.h" #endif +#include "wx/wxprec.h" + #include "wx/app.h" #include "wx/stattext.h" #include "wx/notebook.h" diff --git a/src/mac/carbon/tabctrl.cpp b/src/mac/carbon/tabctrl.cpp index 33bf35469b..6f4b3006ed 100644 --- a/src/mac/carbon/tabctrl.cpp +++ b/src/mac/carbon/tabctrl.cpp @@ -9,11 +9,11 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "tabctrl.h" #endif -#include "wx/defs.h" +#include "wx/wxprec.h" #include "wx/control.h" #include "wx/tabctrl.h" diff --git a/src/mac/carbon/taskbar.cpp b/src/mac/carbon/taskbar.cpp index 62b912bbe8..e94ae77d65 100644 --- a/src/mac/carbon/taskbar.cpp +++ b/src/mac/carbon/taskbar.cpp @@ -11,8 +11,6 @@ #include "wx/wxprec.h" -#include "wx/defs.h" - #ifdef wxHAS_TASK_BAR_ICON #include "wx/mac/private.h" diff --git a/src/mac/carbon/textctrl.cpp b/src/mac/carbon/textctrl.cpp index 54cb030e19..90551cf59c 100644 --- a/src/mac/carbon/textctrl.cpp +++ b/src/mac/carbon/textctrl.cpp @@ -9,11 +9,11 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "textctrl.h" #endif -#include "wx/defs.h" +#include "wx/wxprec.h" #if wxUSE_TEXTCTRL diff --git a/src/mac/carbon/tglbtn.cpp b/src/mac/carbon/tglbtn.cpp index 0e7af69d62..1c3c21b8cd 100644 --- a/src/mac/carbon/tglbtn.cpp +++ b/src/mac/carbon/tglbtn.cpp @@ -18,15 +18,15 @@ // headers // ---------------------------------------------------------------------------- -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "button.h" #endif -#include "wx/defs.h" -#include "wx/tglbtn.h" +#include "wx/wxprec.h" #if wxUSE_TOGGLEBTN +#include "wx/tglbtn.h" #include "wx/mac/uma.h" // Button diff --git a/src/mac/carbon/thread.cpp b/src/mac/carbon/thread.cpp index 6809af50f6..010a4c5cff 100644 --- a/src/mac/carbon/thread.cpp +++ b/src/mac/carbon/thread.cpp @@ -10,7 +10,7 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "thread.h" #endif diff --git a/src/mac/carbon/timer.cpp b/src/mac/carbon/timer.cpp index 6830dd25cb..5fe0c8428e 100644 --- a/src/mac/carbon/timer.cpp +++ b/src/mac/carbon/timer.cpp @@ -9,10 +9,12 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "timer.h" #endif +#include "wx/wxprec.h" + #include "wx/timer.h" #if !USE_SHARED_LIBRARY diff --git a/src/mac/carbon/toolbar.cpp b/src/mac/carbon/toolbar.cpp index bdb6e6bad3..ef6f7623c4 100644 --- a/src/mac/carbon/toolbar.cpp +++ b/src/mac/carbon/toolbar.cpp @@ -9,14 +9,15 @@ // Licence: The wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "toolbar.h" #endif -#include "wx/wx.h" +#include "wx/wxprec.h" #if wxUSE_TOOLBAR +#include "wx/wx.h" #include "wx/toolbar.h" #include "wx/notebook.h" #include "wx/tabctrl.h" diff --git a/src/mac/carbon/tooltip.cpp b/src/mac/carbon/tooltip.cpp index 73e70849f0..0c16019c47 100644 --- a/src/mac/carbon/tooltip.cpp +++ b/src/mac/carbon/tooltip.cpp @@ -7,11 +7,11 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "tooltip.h" #endif -#include "wx/defs.h" +#include "wx/wxprec.h" #if wxUSE_TOOLTIPS diff --git a/src/mac/carbon/toplevel.cpp b/src/mac/carbon/toplevel.cpp index 1fbb44d100..d4f3e31c97 100644 --- a/src/mac/carbon/toplevel.cpp +++ b/src/mac/carbon/toplevel.cpp @@ -17,7 +17,7 @@ // headers // ---------------------------------------------------------------------------- -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "toplevel.h" #endif diff --git a/src/mac/carbon/treectrl.cpp b/src/mac/carbon/treectrl.cpp index 7a548a7436..0fa15e39ef 100644 --- a/src/mac/carbon/treectrl.cpp +++ b/src/mac/carbon/treectrl.cpp @@ -9,10 +9,12 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "treectrl.h" #endif +#include "wx/wxprec.h" + #include "wx/stubs/textctrl.h" #include "wx/treebase.h" #include "wx/stubs/treectrl.h" diff --git a/src/mac/carbon/uma.cpp b/src/mac/carbon/uma.cpp index 7f1fa17db9..9f577b30f5 100644 --- a/src/mac/carbon/uma.cpp +++ b/src/mac/carbon/uma.cpp @@ -9,7 +9,7 @@ // Licence: The wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#include "wx/defs.h" +#include "wx/wxprec.h" #if wxUSE_GUI diff --git a/src/mac/carbon/utils.cpp b/src/mac/carbon/utils.cpp index 26b435433b..c20126d12c 100644 --- a/src/mac/carbon/utils.cpp +++ b/src/mac/carbon/utils.cpp @@ -9,12 +9,13 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) // Note: this is done in utilscmn.cpp now. // #pragma implementation "utils.h" #endif -#include "wx/setup.h" +#include "wx/wxprec.h" + #include "wx/utils.h" #include "wx/app.h" #include "wx/apptrait.h" diff --git a/src/mac/carbon/utilsexc.cpp b/src/mac/carbon/utilsexc.cpp index fc4b8d28ff..6c82d0ca87 100644 --- a/src/mac/carbon/utilsexc.cpp +++ b/src/mac/carbon/utilsexc.cpp @@ -9,10 +9,6 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ -//#pragma implementation -#endif - #include "wx/wxprec.h" #ifndef WX_PRECOMP #include "wx/log.h" diff --git a/src/mac/carbon/window.cpp b/src/mac/carbon/window.cpp index c456292236..7f8e6417d8 100644 --- a/src/mac/carbon/window.cpp +++ b/src/mac/carbon/window.cpp @@ -9,11 +9,12 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "window.h" #endif -#include "wx/setup.h" +#include "wx/wxprec.h" + #include "wx/menu.h" #include "wx/window.h" #include "wx/dc.h" -- 2.45.2