mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-02 07:36:17 +01:00
gwin32.c: Avoid a GCC warning
Add a pair of braces to make things more clear, to avoid a warning when -Wparentheses is used. Reported by Ignacio Casel Quinteiro.
This commit is contained in:
parent
42699e37be
commit
dfd74a271d
@ -598,11 +598,13 @@ g_win32_check_windows_version (const gint major,
|
||||
if (osverinfo.dwMajorVersion > major)
|
||||
is_ver_checked = TRUE;
|
||||
else if (osverinfo.dwMajorVersion == major)
|
||||
if (osverinfo.dwMinorVersion > minor)
|
||||
is_ver_checked = TRUE;
|
||||
else if (osverinfo.dwMinorVersion == minor)
|
||||
if (osverinfo.wServicePackMajor >= spver)
|
||||
{
|
||||
if (osverinfo.dwMinorVersion > minor)
|
||||
is_ver_checked = TRUE;
|
||||
else if (osverinfo.dwMinorVersion == minor)
|
||||
if (osverinfo.wServicePackMajor >= spver)
|
||||
is_ver_checked = TRUE;
|
||||
}
|
||||
|
||||
/* Check OS Type */
|
||||
if (is_ver_checked)
|
||||
|
Loading…
Reference in New Issue
Block a user