From 0555b2a0a3c509687e7fc5aeb160f5171b7e6311 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 28 Nov 2012 14:17:53 +0000 Subject: [PATCH] Add missing wxUSE_OLE checks to safearray.cpp. Fix compilation with wxUSE_OLE==0. Closes #14860. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73049 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/ole/safearray.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/msw/ole/safearray.cpp b/src/msw/ole/safearray.cpp index c4061e75ab..9201776722 100644 --- a/src/msw/ole/safearray.cpp +++ b/src/msw/ole/safearray.cpp @@ -23,6 +23,8 @@ #pragma hdrstop #endif +#if wxUSE_OLE && wxUSE_VARIANT + #ifndef WX_PRECOMP #include "wx/variant.h" #endif // WX_PRECOMP @@ -131,4 +133,4 @@ bool wxSafeArrayBase::Unlock() return true; } - +#endif // wxUSE_OLE && wxUSE_VARIANT -- 2.47.2