author Ryan C. Gordon
Mon, 01 Jan 2018 19:16:51 -0500
changeset 11803 454f6dc9cb85
parent 7924 fcb86d323770
permissions -rwxr-xr-x
windows: Remove references to GetVersionExA (thanks, Andrew Pilley!).

"GetVersionExA is deprecated in windows 8.1 and above's SDK, causing a warning
when building against the win10 SDK. Attached patch cleans up the usage for a
warning-free build.

GetVersionExA was being used to test to see if SDL was running on win9x or
winnt. A quick chat with Ryan on twitter suggested that SDL doesn't
officially support win9x anymore, so the call to this can be outright removed.

As an aside, replacing the call to GetVersionExA with VerifyVersionInfoA (the
recommended path) would have been pointless, as VerifyVersionInfoA only
supports VER_PLATFORM_WIN32_NT and doesn't officially support any other value
for dwPlatformId currently. (And it's probable that win9x SDKs didn't have
VerifyVersionInfo* in them anyway.)"

Fixes Bugzilla #4019.
     1 /*  Generated from by autoheader.  */
     3 /* Define to the address where bug reports for this package should be sent. */
     6 /* Define to the full name of this package. */
     7 #undef PACKAGE_NAME
     9 /* Define to the full name and version of this package. */
    10 #undef PACKAGE_STRING
    12 /* Define to the one symbol short name of this package. */
    13 #undef PACKAGE_TARNAME
    15 /* Define to the home page for this package. */
    16 #undef PACKAGE_URL
    18 /* Define to the version of this package. */
    19 #undef PACKAGE_VERSION
    21 /* Define to empty if `const' does not conform to ANSI C. */
    22 #undef const