mingw compilation fixes
This commit is contained in:
parent
f2dff606ef
commit
41a648c816
@ -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
|
||||||
|
@ -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
|
||||||
|
Reference in New Issue
Block a user