diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-11-20 15:35:27 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-11-20 15:35:27 (GMT) |
commit | 857ad319e1e8ef85c537ede8d628c08de911f03f (patch) | |
tree | 5575fae1369cc63819f3589e02d3191a3d15afd1 /win/tkWinX.c | |
parent | 0af1f3e468baaf1b8cf6bc13452d1fc8f0a265f5 (diff) | |
download | tk-857ad319e1e8ef85c537ede8d628c08de911f03f.zip tk-857ad319e1e8ef85c537ede8d628c08de911f03f.tar.gz tk-857ad319e1e8ef85c537ede8d628c08de911f03f.tar.bz2 |
Some bit of Windows 8.1 compatibility: See [http://msdn.microsoft.com/en-us/library/windows/desktop/dn302074.aspx]
Diffstat (limited to 'win/tkWinX.c')
-rw-r--r-- | win/tkWinX.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/win/tkWinX.c b/win/tkWinX.c index 1e218ec..60e5e90 100644 --- a/win/tkWinX.c +++ b/win/tkWinX.c @@ -167,10 +167,10 @@ TkGetServerInfo( * display and server. */ { char buffer[60]; - OSVERSIONINFO os; + OSVERSIONINFOW os; - os.dwOSVersionInfoSize = sizeof(OSVERSIONINFO); - GetVersionEx(&os); + os.dwOSVersionInfoSize = sizeof(OSVERSIONINFOW); + GetVersionExW(&os); sprintf(buffer, "Windows %d.%d %d %s", (int)os.dwMajorVersion, (int)os.dwMinorVersion, (int)os.dwBuildNumber, #ifdef _WIN64 @@ -378,10 +378,10 @@ int TkWinGetPlatformId(void) { if (tkPlatformId == 0) { - OSVERSIONINFO os; + OSVERSIONINFOW os; - os.dwOSVersionInfoSize = sizeof(OSVERSIONINFO); - GetVersionEx(&os); + os.dwOSVersionInfoSize = sizeof(OSVERSIONINFOW); + GetVersionExW(&os); tkPlatformId = os.dwPlatformId; /* |