Question to time.h
Reinhard
Posts: 489
Hi,
currently I try to port the sourceforge NMEA Library for encoding GPS data to propgcc
there I found this mismatch between propgcc's time.h and dev-cpp's time.h declaration of gmtime
dev-cpp. time.h struct tm* gmtime (const time_t*);
propgcc time.h struct tm* gmtime (const time_t *, struct tm *);
maybe one of this declarations is deprecated, but I do not know which version.
Can someone check twice, for this issue ?
Reinhard
currently I try to port the sourceforge NMEA Library for encoding GPS data to propgcc
there I found this mismatch between propgcc's time.h and dev-cpp's time.h declaration of gmtime
dev-cpp. time.h struct tm* gmtime (const time_t*);
propgcc time.h struct tm* gmtime (const time_t *, struct tm *);
maybe one of this declarations is deprecated, but I do not know which version.
Can someone check twice, for this issue ?
Reinhard
Comments
dev-cpp's version is correct. The propgcc one is a cut and paste error. Thank you for reporting this!
(For now you can just change the definition in time.h. We'll fix this in a future release, but I'm just about to upload binaries for the next release so there isn't time to get it into this version, sorry :-(.)
Eric
Whoops, it's worse than that -- gmtime is missing entirely from the library! I've run into a glitch in my release build script, so I have to repackage everything anyway. I'll try to get the fix in to the v0_2_1 release.
Thanks for the bug report!
Eric