[Beremiz-devel] [MatIEC][PATCH] fix unknown time_t type

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Beremiz-devel] [MatIEC][PATCH] fix unknown time_t type

Beremiz-Devel mailing list
Hi,

time(2) man page says that include <time.h> is required. iec_std_lib.h
doesn't have one. This causes in some cases compilation error about
unknown time_t and company:

- compilation with gcc with compliance to C99 standard;
- compilation with gcc for AVR architecture.

Maybe there are some other cases I'm just not aware of. Attached patch
shouldn't break anything, just bring more compliance to the library.

--
Best regards,
Andrey Skvortsov

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel

time_t_compliant.patch (308 bytes) Download Attachment
signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [Beremiz-devel] [MatIEC][PATCH] fix unknown time_t type

Beremiz-Devel mailing list
Hi,
   Thanks your advice.
   And your patch is really reasonable!

Best regards,
Mengkui Wu



--
Sent from: http://beremiz-devel.2374573.n4.nabble.com/

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel