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:
@@ -193,12 +193,7 @@ long wxGetLocalTime()
|
|||||||
// Get UTC time as seconds since 00:00:00, Jan 1st 1970
|
// Get UTC time as seconds since 00:00:00, Jan 1st 1970
|
||||||
long wxGetUTCTime()
|
long wxGetUTCTime()
|
||||||
{
|
{
|
||||||
#ifdef _MSC_VER
|
return (long)time(NULL);
|
||||||
unsigned
|
|
||||||
#endif
|
|
||||||
long timenow = 0;
|
|
||||||
time(&timenow);
|
|
||||||
return timenow;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#if wxUSE_LONGLONG
|
#if wxUSE_LONGLONG
|
||||||
|
Reference in New Issue
Block a user