sys/reent.h and time.h
Tue Aug 7 13:52:00 GMT 2001
The comment at the top of sys/reent.h says:
/* WARNING: All identifiers here must begin with an underscore. This file
included by stdio.h and others and we therefore must only use identifiers
in the namespace allotted to us. */
but reent.h includes time.h (presumably to get `struct tm') which brings in
quite a few identifiers that don't begin with an underscore. The upshot is
the following program won't compile:
int time = 0;
printf ("%d", time);
since time is defined in time.h.
Is this a known problem? What is the best approach to fixing this?
Please CC me as I'm not on the list (yet).
More information about the Newlib