+ #if defined(__OS2__)
+ if ( ::DosDeleteDir(dir.c_str()) != 0 )
+ #elif defined(__WXWINCE__)
+ if ( RemoveDirectory(dir.fn_str()) == 0 )
+ #else
+ if ( wxRmDir(dir.fn_str()) != 0 )
+ #endif
+ {
+ wxLogSysError(_("Directory '%s' couldn't be deleted"), dir);
+ return false;
+ }
+
+ return true;
+#endif // PALMOS/!PALMOS