Dear Simon Glass,

In message <[email protected]> you wrote:
> 
> Some device tree files use the word 'linux' which gets replaced with '1' by
> many version of gcc, including version 4.7. So undefine this.

I think this is not a good way to address this issue.  The GCC
documentation (section "System-specific Predefined Macros" [1])
desribes how this should be handled.  The "correct" (TM) way to fix
this is by adding "-ansi" or any "-std" option that requests strict
conformance to the compiler/preprocessor command line.

[1] 
http://gcc.gnu.org/onlinedocs/cpp/System_002dspecific-Predefined-Macros.html#System_002dspecific-Predefined-Macros


Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected]
The human race is faced with a cruel choice: work  or  daytime  tele-
vision.
_______________________________________________
devicetree-discuss mailing list
[email protected]
https://lists.ozlabs.org/listinfo/devicetree-discuss

Reply via email to