[PATCH] __FreeBSD_kernel__
Benjamin Kaduk
kaduk at MIT.EDU
Sat Jul 2 22:06:08 UTC 2011
On Sat, 2 Jul 2011, Robert Millan wrote:
> My request is that FreeBSD also defines __FreeBSD_kernel__. If this
> happens, life would be made a bit easier on both sides, as it'd be
% Index: contrib/gcc/config/freebsd-spec.h
% ===================================================================
% --- contrib/gcc/config/freebsd-spec.h (revision 223721)
% +++ contrib/gcc/config/freebsd-spec.h (working copy)
% @@ -54,6 +54,7 @@
% do \
% { \
% builtin_define_with_int_value ("__FreeBSD__", FBSD_MAJOR); \
% + builtin_define ("__FreeBSD_kernel__"); \
Is there a reason to prefer just defining the symbol to also including the
major version number as is done for __FreeBSD__?
-Ben Kaduk
% builtin_define_std ("unix"); \
% builtin_define_std ("__unix__"); \
% builtin_define ("__KPRINTF_ATTRIBUTE__"); \
More information about the freebsd-hackers
mailing list