Bug 461848 - libjar wince cleanup r+sr=dveditz

This commit is contained in:
Doug Turner 2008-12-03 08:41:12 -05:00
parent 286dc1da9e
commit e1f2c7a82c

View File

@ -103,6 +103,23 @@ char * strdup(const char *src)
}
#endif
#ifdef WINCE
int remove(const char* inPath)
{
unsigned short wPath[MAX_PATH];
MultiByteToWideChar(CP_ACP,
0,
inPath,
-1,
wPath,
MAX_PATH);
if(FALSE != DeleteFileW(wPath))
return 0;
return -1;
}
#endif
#endif /* STANDALONE */
#ifdef XP_UNIX