blob: a616cc3e64715cff6f99b469a9e802611b31bdb9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// Copyright 2018-2021 The Mumble Developers. All rights reserved.
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file at the root of the
// Mumble source tree or at <https://www.mumble.info/LICENSE>.
#include <QtCore/QLibrary>
#include "PlatformCheck.h"
bool PlatformCheck::IsWine() {
#ifdef Q_OS_WIN
// Detect if we're running under Wine.
// For more info, see https://wiki.winehq.org/Developer_FAQ#How_can_I_detect_Wine.3F
if (QLibrary::resolve(QLatin1String("ntdll.dll"), "wine_get_version")) {
return true;
}
#endif
return false;
}
|