#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
#ifdef __WXMSW__
#include "wx/msw/registry.h"
#include "windows.h"
-#elif defined(__UNIX__)
+#elif defined(__UNIX__) || defined(__WXPM__)
#include "wx/ffile.h"
#include "wx/textfile.h"
#include "wx/dir.h"
// other standard headers
#include <ctype.h>
+// in case we're compiling in non-GUI mode
+class WXDLLEXPORT wxIcon;
+
// ----------------------------------------------------------------------------
// private classes
// ----------------------------------------------------------------------------
{
wxArrayString dirs;
dirs.Add(_T("/usr/share"));
-
+
wxString gnomedir;
wxGetHomeDir( &gnomedir );
gnomedir += _T("/.gnome");