Fix visual studio build
This commit is contained in:
parent
6a4358fa35
commit
c9fd50c14f
@ -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)
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user