X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d3c7fc996a73e9f6a83067bc28a3c5581a3fee65..278f584fedf0647bf5dbb1c33ed2df11e2a59ad8:/include/wx/msw/ole/automtn.h diff --git a/include/wx/msw/ole/automtn.h b/include/wx/msw/ole/automtn.h index 1aa3c148e4..4feca6ff74 100644 --- a/include/wx/msw/ole/automtn.h +++ b/include/wx/msw/ole/automtn.h @@ -12,6 +12,10 @@ #ifndef _WX_AUTOMTN_H_ #define _WX_AUTOMTN_H_ +#include "wx/defs.h" + +#if wxUSE_OLE_AUTOMATION + #include "wx/object.h" #include "wx/variant.h" @@ -27,14 +31,14 @@ typedef unsigned short* WXBSTR; * Wraps up an IDispatch pointer and invocation; does variant conversion. */ -class WXDLLEXPORT wxAutomationObject: public wxObject +class WXDLLIMPEXP_CORE wxAutomationObject: public wxObject { public: wxAutomationObject(WXIDISPATCH* dispatchPtr = NULL); virtual ~wxAutomationObject(); // Set/get dispatch pointer - inline void SetDispatchPtr(WXIDISPATCH* dispatchPtr) { m_dispatchPtr = dispatchPtr; }; + inline void SetDispatchPtr(WXIDISPATCH* dispatchPtr) { m_dispatchPtr = dispatchPtr; } inline WXIDISPATCH* GetDispatchPtr() const { return m_dispatchPtr; } // Get a dispatch pointer from the current object associated @@ -92,6 +96,6 @@ public: DECLARE_NO_COPY_CLASS(wxAutomationObject) }; +#endif // wxUSE_OLE_AUTOMATION -#endif - // _WX_AUTOMTN_H_ +#endif // _WX_AUTOMTN_H_