integer.h 860 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * Copyright (C) 2019-2020 Alibaba Group Holding Limited
  3. */
  4. /*-------------------------------------------*/
  5. /* Integer type definitions for FatFs module */
  6. /*-------------------------------------------*/
  7. #ifndef FF_INTEGER
  8. #define FF_INTEGER
  9. #ifdef _WIN32 /* FatFs development platform */
  10. #include <windows.h>
  11. typedef unsigned __int64 QWORD;
  12. #else /* Embedded platform */
  13. /* These types MUST be 16-bit or 32-bit */
  14. typedef int INT;
  15. typedef unsigned int UINT;
  16. /* This type MUST be 8-bit */
  17. typedef unsigned char BYTE;
  18. /* These types MUST be 16-bit */
  19. typedef short SHORT;
  20. typedef unsigned short WORD;
  21. typedef unsigned short WCHAR;
  22. /* These types MUST be 32-bit */
  23. typedef long LONG;
  24. typedef unsigned long DWORD;
  25. /* This type MUST be 64-bit (Remove this for ANSI C (C89) compatibility) */
  26. typedef unsigned long long QWORD;
  27. #endif
  28. #endif