tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] Outdated .def files


From: grischka
Subject: Re: [Tinycc-devel] Outdated .def files
Date: Sat, 18 Sep 2021 21:02:00 +0200
User-agent: Thunderbird 2.0.0.23 (Windows/20090812)

Christian Jullien wrote:
Hi Grischka,

I fact I processed differently. I was very disappointed to see that my code
compiled by tcc reported "Windows 10" on "Windows 11" because kernel32.def
lacks the few API I recently added for this purpose.

As far as I can see, "Windows 11" identifies itself as 10.0.21995(++),
that is "Windows 10" with a build number >= 21995.

And that information can be obtained simply with "GetVersion()" which
exists forever in all windoses.

While it seems that the API you just did add to the tinycc kernel32.def
already has been depreciated again:

    "VerifyVersionInfoA function (winbase.h)
     ...
     Note: This function has been deprecated for Windows 10. See 'targeting
     your applications for Windows' for more information."

And even the old GetVersionEx() was admittedly added only for the stupids:

    "The GetVersionEx function was developed because many existing
     applications err when examining the packed DWORD value returned
     by GetVersion, transposing the major and minor version numbers..."

(of course it's not the applications but the people who wrote them).

Seen that I'm inclined to think that much of the 3 times as big kernel32.def
from newer windoses that you did mention doesn't really serve a purpose other
than to support an increasing stupidity (or at least the assumption of it) ?!?

Or otherwise that the purpose is to make people feel more stupid than they
really are:
   "In time there will be a way to properly detect Windows 11, I'm sure
    Microsoft is still figuring out the most complicated way to make life
    more difficult for developers"
and
   "Don't worry, they have a guy for that I'm sure."

comments from
https://www.techpowerup.com/forums/threads/gpu-z-2-40-2-vs-windows-11.283417/

Really I don't care which scenario they want to prepare for with their OS,
but then again is is still up to us where we make TinyCC to go.

In any case saying "OUtdated .def files" means to me that you didn't really
understand anything of it.

As a fact the files were "outdated" already in their very first incarnation
when added in 2005 and haven't seen any significant changes since then.
Therefor "outdated" isn't really a category for something that never was
up-to-date nor ever even tried to be.

Btw. the easiest way to have all the functions of the windows system dll's
is just to delete the tinycc .def files on your computer.

--- grischka




reply via email to

[Prev in Thread] Current Thread [Next in Thread]