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:
@@ -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
|
||||
|
Reference in New Issue
Block a user