]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/oleauto/oleauto.cpp
Fix a crash in wxExecute() in wxMSW too.
[wxWidgets.git] / samples / oleauto / oleauto.cpp
index 8c77063fbcdb0926181bc94195621fdfef05647c..1bd9e97b6b8552d3e300045b5c3faff7e19bd998 100644 (file)
@@ -32,7 +32,7 @@
 
 #include "wx/msw/ole/automtn.h"
 
-#ifndef __WXMSW__
+#ifndef __WINDOWS__
 #error "Sorry, this sample works under Windows only."
 #endif
 
@@ -40,7 +40,7 @@
 // ressources
 // ----------------------------------------------------------------------------
 // the application icon
-#if !defined(__WXMSW__) && !defined(__WXPM__)
+#ifndef wxHAS_IMAGES_IN_RESOURCES
     #include "../sample.xpm"
 #endif