-#if defined(__WXMSW__)
-#include "wx/msw/imaglist.h"
-#elif defined(__WXMOTIF__)
-#include "wx/generic/imaglist.h"
-#elif defined(__WXGTK__)
-#include "wx/generic/imaglist.h"
+#if defined(__WIN32__) && !defined(__WXUNIVERSAL__)
+ #include "wx/msw/imaglist.h"
+#else
+ #include "wx/generic/imaglist.h"