git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41315 
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
     DECLARE_DYNAMIC_CLASS(wxGenericImageList)
 };
 
     DECLARE_DYNAMIC_CLASS(wxGenericImageList)
 };
 
-#if !defined(__WXMSW__) && !defined(__WXMAC__)
+#ifndef wxHAS_NATIVE_IMAGELIST
+
 /*
  * wxImageList has to be a real class or we have problems with
  * the run-time information.
 /*
  * wxImageList has to be a real class or we have problems with
  * the run-time information.
-#endif // !HAVE_NATIVE_IMAGELIST
+#endif // !wxHAS_NATIVE_IMAGELIST
 
 #endif  // __IMAGELISTH_G__
 
 
 #endif  // __IMAGELISTH_G__