summaryrefslogtreecommitdiffstats
path: root/win/tkWinX.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-11-20 15:39:06 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-11-20 15:39:06 (GMT)
commitcd9b1b4e2eb20ce366117450c05587e553575ede (patch)
tree9976f13324cf0bd237211a28a8128ba6ed808df8 /win/tkWinX.c
parent151602acbed7ccb5e9fb44a88f9bfacc3a7a0d09 (diff)
parent91d119b4daa980c893344e7f1bf0e856160efea2 (diff)
downloadtk-cd9b1b4e2eb20ce366117450c05587e553575ede.zip
tk-cd9b1b4e2eb20ce366117450c05587e553575ede.tar.gz
tk-cd9b1b4e2eb20ce366117450c05587e553575ede.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 22edb60..86010e9 100644
--- a/win/tkWinX.c
+++ b/win/tkWinX.c
@@ -120,10 +120,10 @@ TkGetServerInfo(
Tk_Window tkwin) /* Token for window; this selects a particular
* display and server. */
{
- OSVERSIONINFO os;
+ OSVERSIONINFOW os;
- os.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
- GetVersionEx(&os);
+ os.dwOSVersionInfoSize = sizeof(OSVERSIONINFOW);
+ GetVersionExW(&os);
Tcl_SetObjResult(interp, Tcl_ObjPrintf("Windows %d.%d %d %s",
(int) os.dwMajorVersion, (int) os.dwMinorVersion,
(int) os.dwBuildNumber,
@@ -326,10 +326,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;
/*