diff --git a/src/msw/utilsexc.cpp b/src/msw/utilsexc.cpp index c71ce01c55..db4da1ef05 100644 --- a/src/msw/utilsexc.cpp +++ b/src/msw/utilsexc.cpp @@ -33,8 +33,10 @@ #include "wx/app.h" #include "wx/intl.h" #include "wx/log.h" +#if wxUSE_GUI // See 'dirty hack' below. #include "wx/frame.h" #endif +#endif #ifdef __WIN32__ #include "wx/stream.h"