visualtest/COPYING.txt
author Ryan C. Gordon
Mon, 01 Jan 2018 19:16:51 -0500
changeset 11803 454f6dc9cb85
parent 10737 3406a0f8b041
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.
icculus@7924
     1
Visual and Interactive Test Automation for SDL 2.0
icculus@7924
     2
Copyright (C) 2013 Apoorv Upreti <apoorvupreti@gmail.com>
icculus@7924
     3
icculus@7924
     4
This software is provided 'as-is', without any express or implied
icculus@7924
     5
warranty.  In no event will the authors be held liable for any damages
icculus@7924
     6
arising from the use of this software.
icculus@7924
     7
icculus@7924
     8
Permission is granted to anyone to use this software for any purpose,
icculus@7924
     9
including commercial applications, and to alter it and redistribute it
icculus@7924
    10
freely, subject to the following restrictions:
icculus@7924
    11
icculus@7924
    12
1. The origin of this software must not be misrepresented; you must not
icculus@7924
    13
   claim that you wrote the original software. If you use this software
icculus@7924
    14
   in a product, an acknowledgment in the product documentation would be
icculus@7924
    15
   appreciated but is not required.
icculus@7924
    16
2. Altered source versions must be plainly marked as such, and must not be
icculus@7924
    17
   misrepresented as being the original software.
slouken@10737
    18
3. This notice may not be removed or altered from any source distribution.