Skip to content

Commit

Permalink
Merge with pocketpc removal.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Mar 10, 2012
1 parent 6e4279e commit c8fc8cf
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/archiver_zip.c
Expand Up @@ -9,10 +9,8 @@

#if (defined PHYSFS_SUPPORTS_ZIP)

#ifndef _WIN32_WCE
#include <errno.h>
#include <time.h>
#endif

#include "zlib.h"

Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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));
Expand All @@ -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 */


Expand Down

0 comments on commit c8fc8cf

Please sign in to comment.