Merge pull request #13096 from salvacam/miyoo-ifdef-fix

miyoo ifdef fix
This commit is contained in:
Autechre 2021-10-13 15:16:42 +02:00 committed by GitHub
commit 0ca98195d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,7 +18,7 @@
#include <file/file_path.h>
#include <streams/file_stream.h>
#include <string/stdstring.h>
#if defined(RS90) || defined(MIYOO)
#if defined(RS90)
#include <lists/dir_list.h>
#endif
@ -317,14 +317,14 @@ int dingux_get_battery_level(void)
void dingux_get_base_path(char *path, size_t len)
{
const char *home = NULL;
#if defined(RS90) || defined(MIYOO)
#if defined(RS90)
struct string_list *dir_list = NULL;
#endif
if (!path || (len < 1))
return;
#if defined(RS90) || defined(MIYOO)
#if defined(RS90)
/* The RS-90 home directory is located on the
* device's internal storage. This has limited
* space (a total of only 256MB), such that it