diff options
Diffstat (limited to 'subsurfacesysinfo.cpp')
-rw-r--r-- | subsurfacesysinfo.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/subsurfacesysinfo.cpp b/subsurfacesysinfo.cpp index caa9db8a5..4093654ee 100644 --- a/subsurfacesysinfo.cpp +++ b/subsurfacesysinfo.cpp @@ -479,3 +479,11 @@ QString SubsurfaceSysInfo::osArch() #endif return res; } + +extern "C" { +bool isWin7Or8() +{ + QString os = SubsurfaceSysInfo::prettyOsName(); + return os == "Windows 7" || os.startsWith("Windows 8"); +} +} |