diff --git a/libyara/modules/pe_utils.c b/libyara/modules/pe_utils.c index e12aebbb25..81a7ae4a53 100644 --- a/libyara/modules/pe_utils.c +++ b/libyara/modules/pe_utils.c @@ -1,11 +1,20 @@ -#if !HAVE_TIMEGM - -#include +#include +#include #include +#if defined(WIN32) +#include +#define strncasecmp _strnicmp +#define timegm _mkgmtime +#endif + +#if !HAVE_TIMEGM && !defined(WIN32) + +#include + static int is_leap( unsigned int year) {