Widevine MediaCas client code that works with Android R
This commit is contained in:
21
plugin/include/cas_util.h
Normal file
21
plugin/include/cas_util.h
Normal file
@@ -0,0 +1,21 @@
|
||||
// Copyright 2019 Google LLC. All Rights Reserved. This file and proprietary
|
||||
// source code may only be used and distributed under the Widevine Master
|
||||
// License Agreement.
|
||||
|
||||
#ifndef CAS_UTIL_H_
|
||||
#define CAS_UTIL_H_
|
||||
|
||||
#include <memory>
|
||||
|
||||
#if __cplusplus >= 201402L || \
|
||||
(defined __cpp_lib_make_unique && __cpp_lib_make_unique >= 201304L) || \
|
||||
(defined(_MSC_VER) && _MSC_VER >= 1900)
|
||||
using std::make_unique;
|
||||
#else
|
||||
template <typename T, typename... Args>
|
||||
std::unique_ptr<T> make_unique(Args&&... args) {
|
||||
return std::unique_ptr<T>(new T(std::forward<Args>(args)...));
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif //CAS_UTIL_H_
|
||||
Reference in New Issue
Block a user