[Mingw-users] Deprecation of __USE_MINGW_ANSI_STDIO

Zurück zum Archiv-Index
Eli Zaretskii eliz****@gnu*****
Thu Jan 10 23:31:05 JST 2019


> From: Keith Marshall <keith****@users*****>
> Date: Thu, 10 Jan 2019 12:07:57 +0000
> 
> Okay, you may be able to write the program to depend only on features of
> Win9x initially, (with WinNT support demanding no more than WinNT4), and
> then use PSAPI, LoadLibrary(), and GetProcAddress() to selectively
> enable optional features which depend on later APIs -- and MinGW's dlfcn
> API can help with this -- but that's going to take some effort, and
> demand some advanced programming techniques ... feature test
> specifications alone are not going to get the job done.

It does indeed take some effort, but, for example, Emacs does
precisely that.

> In general, what you are asking for is feature support on two mutually
> exclusive levels.  No combination of compile-time feature test macros is
> going to give you that ... you need to put in the programming effort to
> identify the platform capabilities at run-time.

Which is why __USE_MINGW_FSEEK is simpler to use: its effect is
localized and simple to understand.

But I'm repeating myself.

Thanks.



More information about the MinGW-Users mailing list
Zurück zum Archiv-Index