X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fb5ddb4c13cfa9c80976c295a5ed30df0b043013..5b7352027902bebecd06e2a124492fc0ee27f4e2:/src/common/mimetype.cpp diff --git a/src/common/mimetype.cpp b/src/common/mimetype.cpp index ee32feae88..3dab4f75fa 100644 --- a/src/common/mimetype.cpp +++ b/src/common/mimetype.cpp @@ -28,7 +28,9 @@ #ifndef WX_PRECOMP #include "wx/string.h" - #include "wx/icon.h" + #if wxUSE_GUI + #include "wx/icon.h" + #endif #endif //WX_PRECOMP // Doesn't compile in WIN16 mode @@ -55,6 +57,9 @@ // other standard headers #include +// in case we're compiling in non-GUI mode +class WXDLLEXPORT wxIcon; + // ---------------------------------------------------------------------------- // private classes // ----------------------------------------------------------------------------