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__"); \
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"