From bb383abdf8631049aa2cb00189c2f7468513175d Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 26 Jan 2022 12:22:32 +0100 Subject: compat/camera-names: fix non-win32 build --- compat/camera-names.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'compat/camera-names.cpp') 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 #include -#include #ifdef _WIN32 # include @@ -42,6 +41,9 @@ int camera_name_to_index(const QString &name) return -1; } +#ifdef _WIN32 +# include + 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> get_camera_names() { std::vector> ret; -- cgit v1.2.3