Browse Source

Use fcntl.h for ESP32

Bill Greiman 5 years ago
parent
commit
74d464a03b
3 changed files with 5 additions and 3 deletions
  1. 1 1
      library.properties
  2. 2 2
      src/SdFat.h
  3. 2 0
      src/SdFatConfig.h

+ 1 - 1
library.properties

@@ -1,5 +1,5 @@
 name=SdFat
-version=1.1.1
+version=1.1.2
 license=MIT
 author=Bill Greiman <fat16lib@sbcglobal.net>
 maintainer=Bill Greiman <fat16lib@sbcglobal.net>

+ 2 - 2
src/SdFat.h

@@ -36,8 +36,8 @@
 #include "sdios.h"
 #endif  // INCLUDE_SDIOS
 //------------------------------------------------------------------------------
-/** SdFat version 1.1.1 */
-#define SD_FAT_VERSION 10101
+/** SdFat version 1.1.2 */
+#define SD_FAT_VERSION 10102
 //==============================================================================
 /**
  * \class SdBaseFile

+ 2 - 0
src/SdFatConfig.h

@@ -99,6 +99,8 @@
 #elif defined(__arm__)
 // ARM gcc defines open flags.
 #define USE_FCNTL_H 1
+#elif defined(ESP32)
+#define USE_FCNTL_H 1
 #else  // defined(__AVR__)
 #define USE_FCNTL_H 0
 #endif  // defined(__AVR__)