]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/ole/automtn.cpp
wxMenu and wxMenuBar modifications: now works much better with owner-drawn
[wxWidgets.git] / src / msw / ole / automtn.cpp
index f72ecea359d7aded0b2b75b2dbdd82ff617d518e..108c2948b0a47cf246d54ef0a8bb19b6a095e922 100644 (file)
@@ -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();