GCC 3.2 is really picky about friends & dllexport.

Now wxWindows compiles (again) as DLL with MinGW GCC 3.2


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17320 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mattia Barbon
2002-09-21 16:16:57 +00:00
parent b2162f4c83
commit 93add80831
4 changed files with 6 additions and 4 deletions

View File

@@ -193,7 +193,7 @@ private:
class WXDLLEXPORT wxListBase : public wxObject class WXDLLEXPORT wxListBase : public wxObject
{ {
friend class wxNodeBase; // should be able to call DetachNode() friend class WXDLLEXPORT wxNodeBase; // should be able to call DetachNode()
friend class wxHashTableBase; // should be able to call untyped Find() friend class wxHashTableBase; // should be able to call untyped Find()
private: private:
// common part of all ctors // common part of all ctors

View File

@@ -20,6 +20,8 @@
WXDLLEXPORT_DATA(extern const wxChar*) wxDialogNameStr; WXDLLEXPORT_DATA(extern const wxChar*) wxDialogNameStr;
class WXDLLEXPORT wxWindowDisabler;
// Dialog boxes // Dialog boxes
class WXDLLEXPORT wxDialog : public wxDialogBase class WXDLLEXPORT wxDialog : public wxDialogBase
{ {
@@ -115,7 +117,7 @@ private:
// while we are showing a modal dialog we disable the other windows using // while we are showing a modal dialog we disable the other windows using
// this object // this object
class wxWindowDisabler *m_windowDisabler; wxWindowDisabler *m_windowDisabler;
DECLARE_DYNAMIC_CLASS(wxDialog) DECLARE_DYNAMIC_CLASS(wxDialog)
DECLARE_EVENT_TABLE() DECLARE_EVENT_TABLE()

View File

@@ -501,7 +501,7 @@ protected:
class WXDLLEXPORT wxObjectRefData class WXDLLEXPORT wxObjectRefData
{ {
friend class wxObject; friend class WXDLLEXPORT wxObject;
public: public:
wxObjectRefData() : m_count(1) { } wxObjectRefData() : m_count(1) { }

View File

@@ -73,7 +73,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxCheckListBox, wxListBox)
class wxCheckListBoxItem : public wxOwnerDrawn class wxCheckListBoxItem : public wxOwnerDrawn
{ {
friend class wxCheckListBox; friend class WXDLLEXPORT wxCheckListBox;
public: public:
// ctor // ctor
wxCheckListBoxItem(wxCheckListBox *pParent, size_t nIndex); wxCheckListBoxItem(wxCheckListBox *pParent, size_t nIndex);