-#if defined(__WINDOWS__)
-#include "wx/msw/brush.h"
-#elif defined(__MOTIF__)
-#include "wx/xt/brush.h"
-#elif defined(__GTK__)
-#include "wx/gtk/brush.h"
+#if defined(__WXMSW__)
+ #include "wx/msw/brush.h"
+#elif defined(__WXMOTIF__) || defined(__WXX11__)
+ #include "wx/x11/brush.h"
+#elif defined(__WXGTK__)
+ #include "wx/gtk/brush.h"
+#elif defined(__WXMGL__)
+ #include "wx/mgl/brush.h"
+#elif defined(__WXMAC__)
+ #include "wx/mac/brush.h"
+#elif defined(__WXCOCOA__)
+ #include "wx/cocoa/brush.h"
+#elif defined(__WXPM__)
+ #include "wx/os2/brush.h"