Skip to content
Permalink
Browse files
Merge with pocketpc removal.
  • Loading branch information
icculus committed Mar 10, 2012
1 parent 6e4279e commit c8fc8cf95786b63e12de0971d0b1facf45a80dca
Showing with 0 additions and 11 deletions.
  1. +0 −11 src/archiver_zip.c
@@ -9,10 +9,8 @@

#if (defined PHYSFS_SUPPORTS_ZIP)

#ifndef _WIN32_WCE
#include <errno.h>
#include <time.h>
#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 */


0 comments on commit c8fc8cf

Please sign in to comment.