From fd06511db8f0bf086980e6d6fbb4d1fa9a99dbef Mon Sep 17 00:00:00 2001 From: guoling Date: Wed, 24 Apr 2024 17:05:09 +0800 Subject: [PATCH 1/2] fix Android compile error --- Core/MMKV_Android.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/MMKV_Android.cpp b/Core/MMKV_Android.cpp index 40bf987a..c3cd94f6 100644 --- a/Core/MMKV_Android.cpp +++ b/Core/MMKV_Android.cpp @@ -19,10 +19,10 @@ */ #include "MMKV.h" +// #include #ifdef MMKV_ANDROID -# include # include "InterProcessLock.h" # include "KeyValueHolder.h" # include "MMKVLog.h" From 6d34583c2693aee40af70651e1d92e65499c1204 Mon Sep 17 00:00:00 2001 From: guoling Date: Wed, 24 Apr 2024 17:11:24 +0800 Subject: [PATCH 2/2] fix Android compile error --- Core/MMKVLog_Android.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/MMKVLog_Android.cpp b/Core/MMKVLog_Android.cpp index ea91dcb6..5b0c7af9 100644 --- a/Core/MMKVLog_Android.cpp +++ b/Core/MMKVLog_Android.cpp @@ -75,8 +75,8 @@ void _MMKVLogWithLevel(MMKVLogLevel level, const char *filename, const char *fun } } } - -#elif MMKV_ANDROID + +# elif defined(MMKV_ANDROID) # include # include # include