GNOME Bugzilla – Bug 361362
gnome-dateedit.h should include time.h
Last modified: 2006-10-24 08:28:52 UTC
Please describe the problem: The gnome-dateedit.h header uses time_t, but it does not include it. It forces the developer to include time.h when he includes gnome-dateedit.h, and it shouldn't happen, as all headers should include the symbols they use. Steps to reproduce: Just compile a piece of code with: #include <gnome-date-edit.h> and not including time.h. Actual results: It returns a warning (preventing successful compilation with -Werror). Expected results: No warnings Does this happen every time? In gcc3. Other information: The fix is simple: just add #include <time.h> to the gnome-dateedit.h.
Fixed. Thanks.