- Removed check for HAVE_MKTIME
This commit is contained in:
parent
534da8445a
commit
d1ac041bf5
2 changed files with 2 additions and 7 deletions
|
@ -170,7 +170,8 @@ check_function_exists(index HAVE_INDEX)
|
|||
check_function_exists(ioctl HAVE_IOCTL)
|
||||
check_function_exists(kqueue HAVE_KQUEUE)
|
||||
check_function_exists(_mkdir HAVE__MKDIR)
|
||||
check_function_exists(mkdir HAVE_MKDIR)
|
||||
#check_function_exists(mkdir HAVE_MKDIR)
|
||||
check_symbol_exists(mkdir "time.h" HAVE_MKDIR)
|
||||
check_function_exists(mmap HAVE_MMAP)
|
||||
check_function_exists(pipe HAVE_PIPE)
|
||||
check_function_exists(poll HAVE_POLL)
|
||||
|
|
|
@ -183,7 +183,6 @@ namespace pvpgn
|
|||
|
||||
if (std::strcmp(prefs_get_version_exeinfo_match(), "parse") == 0)
|
||||
{
|
||||
#ifdef HAVE_MKTIME
|
||||
struct std::tm t1;
|
||||
char *exe;
|
||||
char mask[MAX_EXEINFO_STR + 1];
|
||||
|
@ -263,11 +262,6 @@ namespace pvpgn
|
|||
else
|
||||
parsed_exeinfo->time = std::mktime(&t1);
|
||||
parsed_exeinfo->size = size;
|
||||
|
||||
#else
|
||||
eventlog(eventlog_level_error, __FUNCTION__, "Your std::system does not support std::mktime(). Please select another exeinfo matching method.");
|
||||
return NULL;
|
||||
#endif
|
||||
}
|
||||
|
||||
return parsed_exeinfo;
|
||||
|
|
Loading…
Reference in a new issue