mingw compilation fixes

This commit is contained in:
U-vsc-win7\vsc 2010-08-04 18:05:46 +01:00
parent f2dff606ef
commit 41a648c816
2 changed files with 3 additions and 1 deletions

View File

@ -42,7 +42,9 @@ static int des_setkey(const char *key);
static int des_cipher(const char *in, char *out, long salt, int num_iter); static int des_cipher(const char *in, char *out, long salt, int num_iter);
#ifdef __WINDOWS__ #ifdef __WINDOWS__
#ifndef __MINGW32__
typedef __int32 int32_t; typedef __int32 int32_t;
#endif
#else #else
#include <sys/cdefs.h> #include <sys/cdefs.h>
#endif #endif

View File

@ -107,7 +107,7 @@ value is EAST and includes the DST offset.
static int static int
tz_offset() tz_offset()
{ {
#if defined(HAVE_VAR_TIMEZONE) || _WIN64 #if defined(HAVE_VAR_TIMEZONE) || _WIN64 || _WIN32
do_tzset(); do_tzset();
return timezone; return timezone;
#else #else