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.
This commit is contained in:
jp9000
2015-03-20 21:19:02 -07:00
committed by Skyler Lipthay
parent ee31962b85
commit 644ac130f8

View File

@@ -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