Skip to content

Commit

Permalink
Undefine O_XXX macros if compiling for posix
Browse files Browse the repository at this point in the history
  • Loading branch information
facchinm committed Sep 24, 2019
1 parent beab304 commit 6c9fa7f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/utility/SdFat.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,20 @@ class SdVolume;
//==============================================================================
// SdFile class

#ifdef O_RDONLY //ARDUINO_ARCH_MBED
#undef O_READ
#undef O_RDONLY
#undef O_WRITE
#undef O_WRONLY
#undef O_RDWR
#undef O_ACCMODE
#undef O_APPEND
#undef O_SYNC
#undef O_CREAT
#undef O_EXCL
#undef O_TRUNC
#endif

// flags for ls()
/** ls() flag to print modify date */
uint8_t const LS_DATE = 1;
Expand Down

0 comments on commit 6c9fa7f

Please sign in to comment.