]> cloudbase.mooo.com Git - z180-stamp.git/blob - fatfs/source/integer.h
Import fatfs R0.13b
[z180-stamp.git] / fatfs / 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 typedef unsigned __int64 QWORD;
12
13 #else /* Embedded platform */
14
15 /* These types MUST be 16-bit or 32-bit */
16 typedef int INT;
17 typedef unsigned int UINT;
18
19 /* This type MUST be 8-bit */
20 typedef unsigned char BYTE;
21
22 /* These types MUST be 16-bit */
23 typedef short SHORT;
24 typedef unsigned short WORD;
25 typedef unsigned short WCHAR;
26
27 /* These types MUST be 32-bit */
28 typedef long LONG;
29 typedef unsigned long DWORD;
30
31 /* This type MUST be 64-bit (Remove this for ANSI C (C89) compatibility) */
32 typedef unsigned long long QWORD;
33
34 #endif
35
36 #endif