On Nov 16, 2011, at 11:26 AM, Robert Millan wrote: > 2011/11/16 Xin LI <delphij_at_delphij.net>: >> Just my $0.02 -- I think we should probably do it in a more >> centralized place -- otherwise in case someone imported some new code, >> they have to do the same defined(__FreeBSD__) || >> defined(__FreeBSD_kernel__)? > > How about something like: > > #if defined(__FreeBSD__) && !defined(__FreeBSD_kernel__) > #define __FreeBSD_kernel__ > #endif > > it can be placed at beginning of each header, then the rest becomes > much simpler. > > Note this has the side-effect of defining __FreeBSD_kernel__ on > FreeBSD, which I suspect some people won't be fond of. An alternative > could be to come up with an ad-hoc macro that means "this system is > either FreeBSD or uses the same kernel as FreeBSD" and define it where > needed. I had a similar suggestion... Why do you think people wouldn't be fond of the __FreeBSD_kernel__ being defined? WarnerReceived on Wed Nov 16 2011 - 17:40:36 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:20 UTC