time() takes time_t, not [unsigned] long -- and in fact we don't need to pass it any argument at all
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26897 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
f46f4c86b2
commit
940b4f0741
@ -193,12 +193,7 @@ long wxGetLocalTime()
|
||||
// Get UTC time as seconds since 00:00:00, Jan 1st 1970
|
||||
long wxGetUTCTime()
|
||||
{
|
||||
#ifdef _MSC_VER
|
||||
unsigned
|
||||
#endif
|
||||
long timenow = 0;
|
||||
time(&timenow);
|
||||
return timenow;
|
||||
return (long)time(NULL);
|
||||
}
|
||||
|
||||
#if wxUSE_LONGLONG
|
||||
|
Loading…
Reference in New Issue
Block a user