version 2.8
fatfs-0.13/source/integer.h
1 /*-------------------------------------------*/
2 /* Integer type definitions for FatFs module */
3 /*-------------------------------------------*/
4 
5 #ifndef FF_INTEGER
6 #define FF_INTEGER
7 
8 #ifdef _WIN32 /* FatFs development platform */
9 
10 #include <windows.h>
11 #include <tchar.h>
12 typedef unsigned __int64 QWORD;
13 
14 
15 #else /* Embedded platform */
16 
17 /* These types MUST be 16-bit or 32-bit */
18 typedef int INT;
19 typedef unsigned int UINT;
20 
21 /* This type MUST be 8-bit */
22 typedef unsigned char BYTE;
23 
24 /* These types MUST be 16-bit */
25 typedef short SHORT;
26 typedef unsigned short WORD;
27 typedef unsigned short WCHAR;
28 
29 /* These types MUST be 32-bit */
30 typedef long LONG;
31 typedef unsigned long DWORD;
32 
33 /* This type MUST be 64-bit (Remove this for ANSI C (C89) compatibility) */
34 typedef unsigned long long QWORD;
35 
36 #endif
37 
38 #endif