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