Re: porting to FreeBSD
- From: Hubert Figuiere <hub figuiere net>
- To: Piotr Smyrak <piotr smyrak heron pl>
- Cc: gnote-list gnome org
- Subject: Re: porting to FreeBSD
- Date: Tue, 18 Aug 2009 18:09:58 -0400
On 08/18/2009 04:22 PM, Piotr Smyrak wrote:
> sharp/datetime.cpp: In member function 'int sharp::DateTime::year() const':
> sharp/datetime.cpp:72: error: invalid conversion from 'const glong*' to 'const time_t*'
> sharp/datetime.cpp:72: error: initializing argument 1 of 'tm* localtime_r(const time_t*, tm*)'
> sharp/datetime.cpp: In member function 'int sharp::DateTime::day_of_year() const':
> sharp/datetime.cpp:79: error: invalid conversion from 'const glong*' to 'const time_t*'
> sharp/datetime.cpp:79: error: initializing argument 1 of 'tm* localtime_r(const time_t*, tm*)'
> sharp/datetime.cpp: In member function 'std::string sharp::DateTime::to_string(const char*) const':
> sharp/datetime.cpp:98: error: invalid conversion from 'const glong*' to 'const time_t*'
> sharp/datetime.cpp:98: error: initializing argument 1 of 'tm* localtime_r(const time_t*, tm*)'
> sharp/datetime.cpp: In member function 'std::string sharp::DateTime::to_short_time_string() const':
> sharp/datetime.cpp:105: error: invalid conversion from 'const glong*' to 'const time_t*'
> sharp/datetime.cpp:105: error: initializing argument 1 of 'tm* localtime_r(const time_t*, tm*)'
Looks like it needs an intermediate time_t * (or a cast, but that's not
the preferred solution).
Patches welcome.
Hub
[
Date Prev][Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]