From: Stefan Csomor Date: Sun, 21 Sep 2008 19:04:42 +0000 (+0000) Subject: fixes #9982 X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/5f9c3802c194876119112b727f8568301e5a7a9d fixes #9982 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55775 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/dlimpexp.h b/include/wx/dlimpexp.h index 9c120f99b6..d7495ecb9b 100644 --- a/include/wx/dlimpexp.h +++ b/include/wx/dlimpexp.h @@ -98,12 +98,23 @@ #ifdef WXMAKINGDLL_BASE # define WXDLLIMPEXP_BASE WXEXPORT # define WXDLLIMPEXP_DATA_BASE(type) WXEXPORT type +# if defined(HAVE_VISIBILITY) +# define WXDLLIMPEXP_INLINE_BASE WXEXPORT +# else +# define WXDLLIMPEXP_INLINE_BASE +# endif #elif defined(WXUSINGDLL) # define WXDLLIMPEXP_BASE WXIMPORT # define WXDLLIMPEXP_DATA_BASE(type) WXIMPORT type +# if defined(HAVE_VISIBILITY) +# define WXDLLIMPEXP_INLINE_BASE WXIMPORT +# else +# define WXDLLIMPEXP_INLINE_BASE +# endif #else /* not making nor using DLL */ # define WXDLLIMPEXP_BASE # define WXDLLIMPEXP_DATA_BASE(type) type +# define WXDLLIMPEXP_INLINE_BASE #endif #ifdef WXMAKINGDLL_NET diff --git a/include/wx/wfstream.h b/include/wx/wfstream.h index aea6b17e6d..da1e7c2d87 100644 --- a/include/wx/wfstream.h +++ b/include/wx/wfstream.h @@ -93,8 +93,8 @@ public: virtual ~wxTempFileOutputStream(); bool Close() { return Commit(); } - WXEXPORT virtual bool Commit() { return m_file->Commit(); } - WXEXPORT virtual void Discard() { m_file->Discard(); } + WXDLLIMPEXP_INLINE_BASE virtual bool Commit() { return m_file->Commit(); } + WXDLLIMPEXP_INLINE_BASE virtual void Discard() { m_file->Discard(); } wxFileOffset GetLength() const { return m_file->Length(); } bool IsSeekable() const { return true; }