3 ms·
"POSIX was just an example, and it is possible to write portable code using #ifdef.." Yes, two ways. One way uses autoconf (and tests each individual option to
by mcguire 12y ago
"POSIX was just an example, and it is possible to write portable code using #ifdef.."
Yes, two ways. One way uses autoconf (and tests each individual option to see which branch of the ifdef to use) and the other uses Imake (and has a big, continuously maintained database of which option to use on each system).