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

Re: Detecting kfreebsd kernel while compiling

Luca Bruno dixit:

>You may also want to check http://predef.sourceforge.net/index.php

Heh, I could have needed that for mksh. But then, the site was
still infant back then. Heck, it doesn’t even have entries for
all of mksh’s supported platforms ☺ and some are simply bogus,
for example, Cygwin is not a compiler…

Dixi quod…

> acces): echo | gcc -E -dD - | less

You could even extend this:
echo '#include <sys/param.h>' | gcc -E -dD - | less

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: