lcc: "arch/e2k/boot/dts/include/iohub.dtsi", line 113: error #11: unrecognized
-
@a1ba Sometimes I wonder which is more cursed, gnu variant of m4, or C preprocessor for non-C.
-
@lanodan clang just strips them away lol
I never questioned how gcc preprocesses device trees so I dunno how it works -
-
-
-
@a1ba@suya.place Yeah, regular
#ifndef _HEADER_H
header guards makes more sense.Or just no header guards, which is typically what I do unless it's a public header you're supposed to
#include
in an application. -
@a1ba@suya.place Yeah, regular
#ifndef _HEADER_H
header guards makes more sense.Or just no header guards, which is typically what I do unless it's a public header you're supposed to
#include
in an application.@lanodan I got bitten by HLSDK code where changing the order of includes breaks build so hard, so I tend to make headers compile-able, which in turn increases odds of double-triple includes, so header guards are required.
Or just put everything into one shared header lol that works too. -
@lanodan I got bitten by HLSDK code where changing the order of includes breaks build so hard, so I tend to make headers compile-able, which in turn increases odds of double-triple includes, so header guards are required.
Or just put everything into one shared header lol that works too.@a1ba Order of includes is so annoying, in fact it bit me yesterday with Tcl headers… -
@a1ba Order of includes is so annoying, in fact it bit me yesterday with Tcl headers…@lanodan is that a problem of tcl itself? Ouch.
-
@lanodan clang just strips them away lol
I never questioned how gcc preprocesses device trees so I dunno how it works@lanodan so the answer is the -xassembler-with-cpp flag