diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-01-26 12:22:32 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-01-26 12:22:32 +0100 |
commit | bb383abdf8631049aa2cb00189c2f7468513175d (patch) | |
tree | 4a60ad9566d264f7a9c6498b382b27bd7d641369 | |
parent | 58761c8d6fa2f64b85845ccd18f759f0ecc7e550 (diff) |
compat/camera-names: fix non-win32 build
-rw-r--r-- | compat/camera-names.cpp | 6 |
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; |