summaryrefslogtreecommitdiffstats
path: root/win/tkWinX.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-11-20 15:35:27 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-11-20 15:35:27 (GMT)
commit857ad319e1e8ef85c537ede8d628c08de911f03f (patch)
tree5575fae1369cc63819f3589e02d3191a3d15afd1 /win/tkWinX.c
parent0af1f3e468baaf1b8cf6bc13452d1fc8f0a265f5 (diff)
downloadtk-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.c12
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;
/*