diff options
Diffstat (limited to 'firmware/include/dir_uncached.h')
-rw-r--r-- | firmware/include/dir_uncached.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/include/dir_uncached.h b/firmware/include/dir_uncached.h index 4e5acf34d1..f225cf8e39 100644 --- a/firmware/include/dir_uncached.h +++ b/firmware/include/dir_uncached.h @@ -32,7 +32,7 @@ #define ATTR_ARCHIVE 0x20 #define ATTR_VOLUME 0x40 /* this is a volume, not a real directory */ -#ifdef SIMULATOR +#if (CONFIG_PLATFORM & PLATFORM_HOSTED) #define dirent_uncached sim_dirent #define DIR_UNCACHED SIM_DIR #define opendir_uncached sim_opendir @@ -57,7 +57,7 @@ struct dirent_uncached { #include "fat.h" typedef struct { -#ifndef SIMULATOR +#if (CONFIG_PLATFORM & PLATFORM_NATIVE) bool busy; long startcluster; struct fat_dir fatdir; @@ -66,7 +66,7 @@ typedef struct { int volumecounter; /* running counter for faked volume entries */ #endif #else - /* simulator: */ + /* simulator/application: */ void *dir; /* actually a DIR* dir */ char *name; #endif |