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 #else /* Embedded platform */ 15 16 #ifdef __cplusplus 17 #if __cplusplus 18 extern "C" { 19 #endif /* __cplusplus */ 20 #endif /* __cplusplus */ 21 22 23 /* This type MUST be 8-bit */ 24 typedef unsigned char BYTE; 25 26 /* These types MUST be 16-bit */ 27 typedef short SHORT; 28 typedef unsigned short WORD; 29 typedef unsigned short WCHAR; 30 31 /* These types MUST be 16-bit or 32-bit */ 32 typedef int INT; 33 typedef unsigned int UINT; 34 35 /* These types MUST be 32-bit */ 36 typedef long LONG; 37 38 typedef unsigned int DWORD; 39 40 /* This type MUST be 64-bit (Remove this for ANSI C (C89) compatibility) */ 41 typedef unsigned long long QWORD; 42 43 #ifdef __cplusplus 44 #if __cplusplus 45 } 46 #endif /* __cplusplus */ 47 #endif /* __cplusplus */ 48 #endif /* _WIN32 */ 49 50 #endif /* _FF_INTEGER */ 51 52