diff --git a/src/gtk1/button.cpp b/src/gtk1/button.cpp index b3898b46b0..f84cfc3221 100644 --- a/src/gtk1/button.cpp +++ b/src/gtk1/button.cpp @@ -13,6 +13,11 @@ #if wxUSE_BUTTON #include "wx/button.h" + +#ifndef WX_PRECOMP + #include "wx/toplevel.h" +#endif + #include "wx/stockitem.h" #include "wx/gtk1/private.h" diff --git a/src/motif/button.cpp b/src/motif/button.cpp index ed2ded5373..b917a07c12 100644 --- a/src/motif/button.cpp +++ b/src/motif/button.cpp @@ -27,6 +27,11 @@ #pragma message enable nosimpint #endif + +#ifndef WX_PRECOMP + #include "wx/toplevel.h" +#endif + #include "wx/stockitem.h" #include "wx/motif/private.h" #include "wx/sysopt.h"