X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/09c0ebcf968686864e2f14e0873764d77ff94a40..3c9f5d644b7cd3500658e8e14458b00d740de061:/samples/toolbar/toolbar.cpp diff --git a/samples/toolbar/toolbar.cpp b/samples/toolbar/toolbar.cpp index 734a3d39df..f996ac59f0 100644 --- a/samples/toolbar/toolbar.cpp +++ b/samples/toolbar/toolbar.cpp @@ -37,16 +37,12 @@ // define this to use XPMs everywhere (by default, BMPs are used under Win) // BMPs use less space, but aren't compiled into the executable on other platforms -#ifdef __WXMSW__ +#ifdef __WINDOWS__ #define USE_XPM_BITMAPS 0 #else #define USE_XPM_BITMAPS 1 #endif -#if USE_XPM_BITMAPS && defined(__WXMSW__) && !wxUSE_XPM_IN_MSW - #error You need to enable XPM support to use XPM bitmaps with toolbar! -#endif // USE_XPM_BITMAPS - // If this is 1, the sample will test an extra toolbar identical to the // main one, but not managed by the frame. This can test subtle differences // in the way toolbars are handled, especially on Mac where there is one @@ -60,7 +56,7 @@ // resources // ---------------------------------------------------------------------------- -#if !defined(__WXMSW__) && !defined(__WXPM__) +#ifndef wxHAS_IMAGES_IN_RESOURCES #include "../sample.xpm" #endif