Ok so I am looking for gmtime and am not finding it in any of the maple libraries or the mapleRTC library. Does that mean that the rtc library has to be compiled against newlib?
Including time.h from a library.
(21 posts) (6 voices)-
Posted 3 years ago #
-
isn't it in time.h? :S
Posted 3 years ago # -
gbulmer:
IMHO it should be _WIRISH_TIME_H_ in wirish_time.h to follow the convention; map non-identifier characters to '_', and add '_' start and end.
The development branch does indeed follow this convention (actually, now we follow the Google C++ #define guard guideline's lead, which roughly says that some/path/header.h becomes
_SOME_PATH_HEADER_H_
, to allow for multiple files with the same name throughout the tree).Posted 3 years ago # -
bubulindo,
It is in the newlib headers but it it is not in anything that installs in the ide or the version of libmaple that I have (whatever was stable a few months ago).
Hence the question.
I suppose I could see if the development branch fattens up wirish_time with more of the useful parts of the ansi time handling but I am working with production code and trying to avoid dev branches.
FWIW the arduino and wiring pack around the full avr-libc which is complete in these areas.
Posted 3 years ago # -
Ok,
This works in the latest libmaple (with the fixes that mbolivar: and bubulindo: discussed above).
Thanks for fixing this!!
Its so nice to be able to manipulate time in an an ansi kind of way!!!!
Don.
Posted 3 years ago # -
Great, glad it's working for you!
Posted 3 years ago #
Reply
You must log in to post.