integer.h 724 B

12345678910111213141516171819202122232425262728293031323334
  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. #else /* Embedded platform */
  10. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  11. /* This type MUST be 8 bit */
  12. typedef unsigned char BYTE;
  13. /* These types MUST be 16 bit */
  14. typedef short SHORT;
  15. typedef unsigned short WORD;
  16. typedef unsigned short WCHAR;
  17. /* These types MUST be 16 bit or 32 bit */
  18. typedef int INT;
  19. typedef unsigned int UINT;
  20. /* These types MUST be 32 bit */
  21. typedef long LONG;
  22. typedef unsigned long DWORD;
  23. #endif
  24. #endif