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

看板FB_current作者時間14年前 (2011/11/18 15:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串9/24 (看更多)
2011/11/17 John Baldwin <jhb@freebsd.org>: > Hmm, I wonder if it's better to use the #ifndef approach rather than #undef > so that when compilers are updated to DTRT we will honor their settings? Well, the compiler is supposed to know better than sys/param.h, because it inherited this number from the runtime kernel when it was built. However, __FreeBSD__ comes from the compiler already so if you "#define __FreeBSD_kernel__ __FreeBSD__" you get the information from the compiler anyway. As both approaches do the same thing, I really don't mind either way. _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
文章代碼(AID): #1EnWAlcz (FB_current)
討論串 (同標題文章)
完整討論串 (本文為第 9 之 24 篇):
文章代碼(AID): #1EnWAlcz (FB_current)