From a353dc9852cc44fcffd339895ba3024d0eebbad7 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 18 Jan 2005 13:15:20 +0000 Subject: [PATCH] more fixes to dllexport/import stuff for operator<<()s (still bug 1104372) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31450 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/longlong.h | 18 ++++++++++++------ src/common/longlong.cpp | 2 ++ 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/include/wx/longlong.h b/include/wx/longlong.h index d41c02ad1a..62d28c53c3 100644 --- a/include/wx/longlong.h +++ b/include/wx/longlong.h @@ -301,10 +301,12 @@ public: #if wxUSE_STD_IOSTREAM // input/output - friend wxSTD ostream& operator<<(wxSTD ostream&, const wxLongLongNative&); + friend WXDLLIMPEXP_BASE + wxSTD ostream& operator<<(wxSTD ostream&, const wxLongLongNative&); #endif - friend wxString& operator<<(wxString&, const wxLongLongNative&); + friend WXDLLIMPEXP_BASE + wxString& operator<<(wxString&, const wxLongLongNative&); private: wxLongLong_t m_ll; @@ -682,10 +684,12 @@ public: void *asArray() const; #if wxUSE_STD_IOSTREAM - friend wxSTD ostream& operator<<(wxSTD ostream&, const wxLongLongWx&); + friend WXDLLIMPEXP_BASE + wxSTD ostream& operator<<(wxSTD ostream&, const wxLongLongWx&); #endif // wxUSE_STD_IOSTREAM - friend wxString& operator<<(wxString&, const wxLongLongWx&); + friend WXDLLIMPEXP_BASE + wxString& operator<<(wxString&, const wxLongLongWx&); private: // long is at least 32 bits, so represent our 64bit number as 2 longs @@ -866,10 +870,12 @@ public: void *asArray() const; #if wxUSE_STD_IOSTREAM - friend wxSTD ostream& operator<<(wxSTD ostream&, const wxULongLongWx&); + friend WXDLLIMPEXP_BASE + wxSTD ostream& operator<<(wxSTD ostream&, const wxULongLongWx&); #endif // wxUSE_STD_IOSTREAM - friend wxString& operator<<(wxString&, const wxULongLongWx&); + friend WXDLLIMPEXP_BASE + wxString& operator<<(wxString&, const wxULongLongWx&); private: // long is at least 32 bits, so represent our 64bit number as 2 longs diff --git a/src/common/longlong.cpp b/src/common/longlong.cpp index 2e589fa723..80fc379374 100644 --- a/src/common/longlong.cpp +++ b/src/common/longlong.cpp @@ -1150,11 +1150,13 @@ void *wxULongLongWx::asArray(void) const #if wxUSE_STD_IOSTREAM // input/output +WXDLLIMPEXP_BASE wxSTD ostream& operator<< (wxSTD ostream& o, const wxLongLong& ll) { return o << ll.ToString(); } +WXDLLIMPEXP_BASE wxSTD ostream& operator<< (wxSTD ostream& o, const wxULongLong& ll) { return o << ll.ToString(); -- 2.45.2