Jacek Caban <[email protected]> wrote:
> Sure, but that is to be expected with older OS versions. They typically
> provide fewer functions than newer versions, and if you want your
> application to run on them, you need to avoid using APIs that are not
> available there. Adding a few random wrappers to mingw-w64 will not
> change that.

I don't see a problem in providing wrappers for functions missing in earlier 
versions of msvcrt.dll. One of usages for msvcrt.dll is to compile code which 
can run on pre-XP systems, where it is installed as a system library. When you 
configuring such a package with autoconf-like checks, you'll run those tests 
against msvcrt.dll on the build system, which is likely to be Windows 10/11, 
which has many functions not available in ancient versions of msvcrt.dll. 
You'll build the project and it'll run on the build system, but it may fail to 
load on old system with older versions of msvcrt.dll. Having such wrappers 
fixes this issue, making user's life easier.

These wrappers for time functions are rather simple and I see no harm in having 
them, obviously except increased binary size, which is unfortunate. There are 
other cases such as `_locale_t` functions, which are simple stubs in case if 
they're not available in system's msvcrt.dll, and I don't really like having 
them.

- Kirill Makurin

_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to