Kai Tietz wrote:

Well, on linux (libc) fopen/freopen/etc the "b" is an nop (but
handled). For O_BINARY the common approach here is to do the following
condifition before use:

#ifndef O_BINARY
#define O_BINARY 0
#endif

This is a pattern pretty often used. To rely here on binmode.o is a
way, too, but it is the most ugly one, too. It affects any file open,
which isn't necessarily wanted.

Cheers,
Kai

Is LTO really the only place gcc needs binary access to files for build of cross compiler?

Andy


Reply via email to