integer.h 991 B

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