From: Etan R. <de...@un...> - 2011-05-11 17:26:42
|
On Wed, May 11, 2011 at 02:12:47PM -0300, Silas Silva wrote: > On Wed, May 11, 2011 at 11:03:34AM -0400, Etan Reisner wrote: > > Does '#include <sys/featuretest.h>' work? > > It works and it is a much better solution, thanks!!! Ok, good. Now I just need to find out what defines I can use to detect netbsd. > Have conditional compilation to differentiate OS/machines is ugly. > Stickying to ANSI C is much better and it is why Lua is so portable :-) Yeah, when it is reasonably possible being natively portable is definitely the best option. But the farther up the stack you get the less that's really possible (well up to a certain point at least). -Etan |