Просмотр исходного кода

libobs: Only allow ComQIPtr on windows

ComPtr can be used for things like the DeckLink API, but ComQIPtr has
windows-specific compiler features, so can't be used outside of windows.
jp9000 10 лет назад
Родитель
Сommit
644ac130f8
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      libobs/util/windows/ComPtr.hpp

+ 4 - 0
libobs/util/windows/ComPtr.hpp

@@ -118,6 +118,8 @@ public:
 	inline bool operator!() const      {return !ptr;}
 };
 
+#ifdef _WIN32
+
 template<class T> class ComQIPtr : public ComPtr<T> {
 
 public:
@@ -134,3 +136,5 @@ public:
 		return *this;
 	}
 };
+
+#endif