diff --git a/src/common/appcmn.cpp b/src/common/appcmn.cpp index eac7451a4b..314a7654eb 100644 --- a/src/common/appcmn.cpp +++ b/src/common/appcmn.cpp @@ -42,7 +42,10 @@ #include "wx/confbase.h" #include "wx/tokenzr.h" #include "wx/utils.h" -#include "wx/artprov.h" + +#if wxUSE_GUI + #include "wx/artprov.h" +#endif // wxUSE_GUI #if !defined(__WXMSW__) || defined(__WXMICROWIN__) #include // for SIGTRAP used by wxTrap()