March 02, 2012
Do you remember this:

It should be solved and I'm volunteer to do it. But I need to know:

1. `_setmode` is only defined in version(DIGITAL_MARS_STDIO) which is defined in version(DigitalMars)version(Windows) but used in version(Windows) in rawRead/rawWrite. So am I right that rawRead/rawWrite templates aren't instantiateable with GDC/LDC on Windows? If it is, what version identifiers do GDC/LDC use to instantiate it?

2. To solve the problem I need to know current file mode and the only way I see to get it is from `__fhnd_info`. Is this method correct for dmd? If it is, is it DigitalMars only?
Top | Discussion index | About this forum | D home