]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/ole/automtn.cpp
compilation fix
[wxWidgets.git] / src / msw / ole / automtn.cpp
index 8a8babc89a9de065bea0cfafe4e2722438ca7a75..934efa6354255768f3447bd8f117f4ab6f6241a9 100644 (file)
@@ -668,7 +668,11 @@ bool ConvertOleToVariant(const VARIANTARG& oleVariant, wxVariant& variant)
        case VT_BOOL:
                {
 #if defined(__WATCOMC__) || (defined(_MSC_VER) && (_MSC_VER <= 1000)) //GC
+#ifndef HAVE_BOOL // Can't use bool operator if no native bool type
+                       variant = (long) (oleVariant.bool != 0);
+#else
                        variant = (bool) (oleVariant.bool != 0);
+#endif
 #else
                        variant = (bool) (oleVariant.boolVal != 0);
 #endif