Re: Detecting kfreebsd kernel while compiling
Joachim Wiedorn dixit:
>> #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
bye,
//mirabilos
--
Sometimes they [people] care too much: pretty printers [and syntax highligh-
ting, d.A.] mechanically produce pretty output that accentuates irrelevant
detail in the program, which is as sensible as putting all the prepositions
in English text in bold font. -- Rob Pike in "Notes on Programming in C"
Reply to: