On Fri, 28 Jun 2024 at 19:13, Gustavo Romero <gustavo.rom...@linaro.org> wrote:
> Re-reading it after your clarifications makes it clear, but the first time
> Phil pointed it out the phrases:
>
> "[...] since the .c file will have already included it." and
> "Headers should normally include everything they need beyond osdep.h."
>
> weren't enough to me to make it clear that osdep.h must always be included
> (present) in the .c files. "will have already included" sounded ambiguous to
> me, more like, if necessary it would have already be included in .c (but not
> always). But, well, that can be a falt in my interpretation.

Yeah, the rule is simple:
 * .c files always include osdep.h, and it comes first
 * .h files never include osdep.h

but the wording in the developer docs doesn't manage to
state that exactly.

-- PMM

Reply via email to