Shop OBEX P1 Docs P2 Docs Learn Events
Question to time.h — Parallax Forums

Question to time.h

ReinhardReinhard Posts: 489
edited 2011-12-11 08:37 in Propeller 1
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

Comments

  • ersmithersmith Posts: 6,099
    edited 2011-12-11 08:00
    Reinhard wrote: »
    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 *);

    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
  • ersmithersmith Posts: 6,099
    edited 2011-12-11 08:37
    ersmith wrote: »
    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 :-(.)

    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
Sign In or Register to comment.