diff options
-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; |