diff --git a/src/archiver_zip.c b/src/archiver_zip.c index 76f8c3e..949aba5 100644 --- a/src/archiver_zip.c +++ b/src/archiver_zip.c @@ -9,10 +9,8 @@ #if (defined PHYSFS_SUPPORTS_ZIP) -#ifndef _WIN32_WCE #include #include -#endif #include "zlib.h" @@ -144,9 +142,7 @@ static const char *zlib_error_string(int rc) { case Z_OK: return NULL; /* not an error. */ case Z_STREAM_END: return NULL; /* not an error. */ -#ifndef _WIN32_WCE case Z_ERRNO: return strerror(errno); -#endif case Z_NEED_DICT: return ERR_NEED_DICT; case Z_DATA_ERROR: return ERR_DATA_ERROR; case Z_MEM_ERROR: return ERR_MEMORY_ERROR; @@ -897,12 +893,6 @@ static int zip_has_symlink_attr(ZIPentry *entry, PHYSFS_uint32 extern_attr) static PHYSFS_sint64 zip_dos_time_to_physfs_time(PHYSFS_uint32 dostime) { -#ifdef _WIN32_WCE - /* We have no struct tm and no mktime right now. - FIXME: This should probably be fixed at some point. - */ - return -1; -#else PHYSFS_uint32 dosdate; struct tm unixtime; memset(&unixtime, '\0', sizeof (unixtime)); @@ -924,7 +914,6 @@ static PHYSFS_sint64 zip_dos_time_to_physfs_time(PHYSFS_uint32 dostime) unixtime.tm_isdst = -1; return ((PHYSFS_sint64) mktime(&unixtime)); -#endif } /* zip_dos_time_to_physfs_time */