-#if defined(__WINDOWS__)
-#include "wx/msw/imaglist.h"
-#elif defined(__MOTIF__)
-#include "wx/generic/imaglist.h"
-#elif defined(__GTK__)
-#include "wx/generic/imaglist.h"
+#if defined(__WIN32__) && !defined(__WXUNIVERSAL__)
+ #include "wx/msw/imaglist.h"
+#else
+ #include "wx/generic/imaglist.h"