[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Detecting kfreebsd kernel while compiling



Hello Thorsten,


Thorsten Glaser <tg@mirbsd.de> wrote:
> >> #if defined (__FreeBSD_kernel__) || defined (__FreeBSD__) || defined (__linux__)
> >This was the right info for me. And now I see how the strings should
> >be. Thanks!
> 
> Useful trick (at least if you have an installation, VM or porterbox
> acces): echo | gcc -E -dD - | less

Wonderful - that is it! Now I can test this an all other architectures
to see which strings are available.

Thanks!


Fondest regards,
 Joachim Wiedorn

Attachment: signature.asc
Description: PGP signature


Reply to: