summaryrefslogtreecommitdiff
path: root/firmware/include/dir_uncached.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/include/dir_uncached.h')
-rw-r--r--firmware/include/dir_uncached.h6
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 @@
32#define ATTR_ARCHIVE 0x20 32#define ATTR_ARCHIVE 0x20
33#define ATTR_VOLUME 0x40 /* this is a volume, not a real directory */ 33#define ATTR_VOLUME 0x40 /* this is a volume, not a real directory */
34 34
35#ifdef SIMULATOR 35#if (CONFIG_PLATFORM & PLATFORM_HOSTED)
36#define dirent_uncached sim_dirent 36#define dirent_uncached sim_dirent
37#define DIR_UNCACHED SIM_DIR 37#define DIR_UNCACHED SIM_DIR
38#define opendir_uncached sim_opendir 38#define opendir_uncached sim_opendir
@@ -57,7 +57,7 @@ struct dirent_uncached {
57#include "fat.h" 57#include "fat.h"
58 58
59typedef struct { 59typedef struct {
60#ifndef SIMULATOR 60#if (CONFIG_PLATFORM & PLATFORM_NATIVE)
61 bool busy; 61 bool busy;
62 long startcluster; 62 long startcluster;
63 struct fat_dir fatdir; 63 struct fat_dir fatdir;
@@ -66,7 +66,7 @@ typedef struct {
66 int volumecounter; /* running counter for faked volume entries */ 66 int volumecounter; /* running counter for faked volume entries */
67#endif 67#endif
68#else 68#else
69 /* simulator: */ 69 /* simulator/application: */
70 void *dir; /* actually a DIR* dir */ 70 void *dir; /* actually a DIR* dir */
71 char *name; 71 char *name;
72#endif 72#endif