Fix visual studio build

This commit is contained in:
Yevgen Muntyan 2015-12-26 01:34:17 -08:00
parent 6a4358fa35
commit c9fd50c14f
2 changed files with 0 additions and 4 deletions

View File

@ -170,7 +170,6 @@ add_definitions(-DMOO_COMPILATION=1 -DHAVE_CONFIG_H=1 -DXDG_PREFIX=_moo_edit_xdg
if(WIN32)
add_definitions(-DUNICODE=1 -D_UNICODE=1 -D__WIN32__=1 -DSTRICT=1 -D_CRT_SECURE_NO_WARNINGS=1 -D_CRT_NONSTDC_NO_WARNINGS=1)
set(MOO_OS_WIN32 TRUE)
add_definitions(-DHAVE_MMAP=1)
add_definitions(-DMOO_NEED_GETTIMEOFDAY=1)
add_definitions(-DHAVE_UNISTD_H=1 -DENABLE_NLS=1 -DHAVE_BIND_TEXTDOMAIN_CODESET=1)
endif(WIN32)

View File

@ -347,10 +347,7 @@ _moo_win32_gettimeofday (struct timeval *tp,
time_t sec;
if (tp == NULL || tzp != NULL)
{
mgw_set_errno (MGW_EINVAL);
return -1;
}
sec = time (NULL);