Skip to content

Commit 5ade193

Browse files
Fix emulator build (at least for devofs) using USE_NATIVE_FS=1 (#725)
* Fix emulator build (at least for devofs) using USE_NATIVE_FS=1
1 parent e658042 commit 5ade193

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

src/std.h

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,14 @@
1414
#endif
1515
#else
1616
#ifndef USE_OWN_STDIO
17-
#define USE_OWN_STDIO 0
18-
#define fopen2(fat, p, m) fopen(p, m)
19-
#define finit if(0) FS_Mount
20-
void fempty(FILE *fh);
17+
#if EMULATOR == USE_NATIVE_FS
18+
#define USE_OWN_STDIO 0
19+
#define fopen2(fat, p, m) fopen(p, m)
20+
#define finit if (0) FS_Mount
21+
void fempty(FILE *fh);
22+
#else
23+
#define USE_OWN_STDIO 1
24+
#endif
2125
#endif
2226
#endif //EMULATOR
2327

0 commit comments

Comments
 (0)