X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3cd94a0d119ade811cd876a309cfe6d28b5c36dd..478cababc5eb51aa1693357d43f9003ae131ecc6:/src/generic/imaglist.cpp?ds=sidebyside diff --git a/src/generic/imaglist.cpp b/src/generic/imaglist.cpp index 4aea721b37..b70f3e23bf 100644 --- a/src/generic/imaglist.cpp +++ b/src/generic/imaglist.cpp @@ -28,6 +28,15 @@ IMPLEMENT_DYNAMIC_CLASS(wxGenericImageList, wxObject) +#if !defined(__WXMSW__) || defined(__WIN16__) || defined(__WXUNIVERSAL__) +/* + * wxImageList has to be a real class or we have problems with + * the run-time information. + */ + +IMPLEMENT_DYNAMIC_CLASS(wxImageList, wxGenericImageList) +#endif + wxGenericImageList::wxGenericImageList( int width, int height, bool mask, int initialCount ) { (void)Create(width, height, mask, initialCount);