Fixes build error when unset MMKV_APPLE on apple platforms

This commit is contained in:
zhongwuzw
2025-06-01 10:33:00 +08:00
parent 4f44fa1c16
commit a006112fb0
+2
View File
@@ -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