pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: glibmm from just updated pkgsrc-2006Q2 fails to compile on amd64
date.h says:
122 #ifndef GLIBMM_DISABLE_DEPRECATED
123
124 /** Sets the value of a date from a GTime (time_t) value.
125 *
126 * @param time GTime value to set.
127 *
128 * @deprecated Please use set_time(time_t) or set_time(const
GTimeVal&).
129 */
130 void set_time(GTime time);
131 #endif // GLIBMM_DISABLE_DEPRECATED
132
133
134 /** Sets the value of a date from a <type>time_t</type> value.
135 *
136 * @param timet time_t value to set
137 *
138 * @see set_time_current()
139 *
140 * Since: 2.10
141 */
142 void set_time(time_t timet);
date.cc:
74 #ifndef GLIBMM_DISABLE_DEPRECATED
75
76 void Date::set_time(GTime time)
77 {
78 //This method, and the C function that it wraps, are deprecated.
79 g_date_set_time(&gobject_, time);
80 }
81 #endif // GLIBMM_DISABLE_DEPRECATED
82
83
84 void Date::set_time(time_t timet)
85 {
86 g_date_set_time_t(&gobject_, timet);
87 }
Apparently, GTime and time_t are the same type, hence the overloading
problem.
-Olaf.
--
___ Olaf 'Rhialto' Seibert -- You author it, and I'll reader it.
\X/ rhialto/at/xs4all.nl -- Cetero censeo "authored" delendum esse.
Home |
Main Index |
Thread Index |
Old Index