X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b2cce0c4572a9c22c225a402d0d872f98d2e9293..c2dcfdef634e097f7efe2288aa13511efb43ae28:/src/msw/ole/automtn.cpp diff --git a/src/msw/ole/automtn.cpp b/src/msw/ole/automtn.cpp index f72ecea359..108c2948b0 100644 --- a/src/msw/ole/automtn.cpp +++ b/src/msw/ole/automtn.cpp @@ -539,7 +539,8 @@ bool ConvertVariantToOle(const wxVariant& variant, VARIANTARG& oleVariant) else if (type == "bool") { oleVariant.vt = VT_BOOL; -#ifdef __WATCOMC__ + // 'bool' required for VC++ 4 apparently +#if defined(__WATCOMC__) || (defined(_MSC_VER) && (_MSC_VER <= 1000)) oleVariant.bool = variant.GetBool(); #else oleVariant.boolVal = variant.GetBool();