blob: 8ade8aec83369a682d8608dae8be4d6a13b45b9a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// Copyright 2005-2019 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 "murmur_pch.h"
#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") != NULL) {
return true;
}
#endif
return false;
}
|