Skip to content

Commit 6e59778

Browse files
author
Wayne Ren
committed
middleware: fatfs: fix the compile error brought by the update of FatFs
It seems that something wrong in fatfs about the definition of integers. It may be updated by the upstream in the future Signed-off-by: Wayne Ren <[email protected]>
1 parent cd4a168 commit 6e59778

File tree

1 file changed

+3
-0
lines changed
  • middleware/fatfs/source

1 file changed

+3
-0
lines changed

middleware/fatfs/source/ff.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,16 @@ extern "C" {
4141
typedef unsigned __int64 QWORD;
4242
#elif (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || defined(__cplusplus) /* C99 or later */
4343
#define FF_INTDEF 2
44+
#if 0
4445
#include <stdint.h>
4546
typedef unsigned int UINT; /* int must be 16-bit or 32-bit */
4647
typedef unsigned char BYTE; /* char must be 8-bit */
4748
typedef uint16_t WORD; /* 16-bit unsigned integer */
4849
typedef uint16_t WCHAR; /* 16-bit unsigned integer */
4950
typedef uint32_t DWORD; /* 32-bit unsigned integer */
5051
typedef uint64_t QWORD; /* 64-bit unsigned integer */
52+
#endif
53+
#include "integer.h"
5154
#else /* Earlier than C99 */
5255
#define FF_INTDEF 1
5356
typedef unsigned int UINT; /* int must be 16-bit or 32-bit */

0 commit comments

Comments
 (0)