Add Android basic support

This commit is contained in:
李通洲
2021-10-20 06:04:55 +00:00
parent fd257ddde9
commit 1a5b1428dc
5 changed files with 47 additions and 18 deletions
+8
View File
@@ -391,3 +391,11 @@ uint32_t ffSettingsGetSQLiteColumnCount(FFinstance* instance, const char* fileNa
return 0;
}
#endif //FF_HAVE_SQLITE3
#ifdef __ANDROID__
#include <sys/system_properties.h>
void ffSettingsGetAndroidProperty(const char* propName, FFstrbuf* result) {
ffStrbufEnsureCapacity(result, PROP_VALUE_MAX);
result->length = __system_property_get(propName, result->chars);
}
#endif