summaryrefslogtreecommitdiffhomepage
path: root/compat/camera-names.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-01-26 12:22:32 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-01-26 12:22:32 +0100
commitbb383abdf8631049aa2cb00189c2f7468513175d (patch)
tree4a60ad9566d264f7a9c6498b382b27bd7d641369 /compat/camera-names.cpp
parent58761c8d6fa2f64b85845ccd18f759f0ecc7e550 (diff)
compat/camera-names: fix non-win32 build
Diffstat (limited to 'compat/camera-names.cpp')
-rw-r--r--compat/camera-names.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/compat/camera-names.cpp b/compat/camera-names.cpp
index c7e38544..8dcf27c6 100644
--- a/compat/camera-names.cpp
+++ b/compat/camera-names.cpp
@@ -2,7 +2,6 @@
#include <algorithm>
#include <iterator>
-#include <QRegularExpression>
#ifdef _WIN32
# include <cwchar>
@@ -42,6 +41,9 @@ int camera_name_to_index(const QString &name)
return -1;
}
+#ifdef _WIN32
+# include <QRegularExpression>
+
static QString prop_to_qstring(IPropertyBag* pPropBag, const wchar_t* name)
{
QString ret{};
@@ -67,6 +69,8 @@ static QString device_path_from_qstring(const QString& str)
return id;
}
+#endif
+
std::vector<std::tuple<QString, int>> get_camera_names()
{
std::vector<std::tuple<QString, int>> ret;