[PATCH] Detect GNU/kFreeBSD in user-visible kernel headers
rmh at freebsd.org
Tue Nov 22 19:14:52 UTC 2011
2011/11/22 Ed Schouten <ed at 80386.nl>:
>> +#undef __FreeBSD_kernel__
>> +#define __FreeBSD_kernel__
> So why not remove the #undef and not let the compiler define it at all?
Well I have no objection if the #undef is removed.
I don't understand why you consider it a problem though. It's not
terribly useful but if compilers can opt in and define it (usually as
an empty macro), this doesn't hurt either AFAICT. The problem I
described before was about compilers being forced to provide a number.
Anyhow, I don't think it makes a big difference.
More information about the freebsd-current