|Re: issue with packages having name linux [message #557986 is a reply to message #557788]
||Thu, 09 September 2010 17:17
| Jon Rowlands
Registered: July 2009
It's a horrible hack, but another workaround is to #undef linux just before including xdc/cfg/global.h, and #define it again just after. Would work as long as nothing in the generated include file actually requires "linux" to be defined.
I believe that's correct, this variant of the problem is mostly limited to packages that build executables, because those are mostly the ones that #include global.h. User-built libraries could too, technically, if they wanted to compile in details of a configuration.
The same issue applies to the target types header included by xdc/std.h, and this would affect more packages. I'm looking to see whether there's any fix we could implement in a future release, not sure yet.
Powered by FUDForum
. Page generated in 0.02476 seconds