Re: [PATCH] Detect GNU/kFreeBSD in user-visible kernel headers

From: Robert Millan <rmh_at_freebsd.org>
Date: Tue, 22 Nov 2011 20:14:50 +0100
Hi Ed,

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.
Received on Tue Nov 22 2011 - 18:14:51 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:20 UTC