mirror of
https://github.com/Tencent/MMKV.git
synced 2026-10-16 20:21:12 +08:00
Fixes build error when unset MMKV_APPLE on apple platforms
This commit is contained in:
@@ -697,6 +697,7 @@ bool MMKV::getVector(MMKVKey_t key, T &result) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
#ifdef MMKV_APPLE
|
||||
#ifdef __OBJC__
|
||||
template<MMKV_SUPPORTED_VECTOR_VALUE_TYPE T>
|
||||
bool getVector(std::string_view key, T &result) {
|
||||
@@ -704,6 +705,7 @@ bool getVector(std::string_view key, T &result) {
|
||||
return getVector(hybridKey.str, result);
|
||||
}
|
||||
#endif // __OBJC__
|
||||
#endif // MMKV_APPLE
|
||||
|
||||
#endif // MMKV_HAS_CPP20
|
||||
|
||||
|
||||
Reference in New Issue
Block a user