#ifndef _FF_INTEGER\r
#define _FF_INTEGER\r
\r
-#ifdef _WIN32 /* FatFs development platform */\r
-\r
-#include <windows.h>\r
-#include <tchar.h>\r
-\r
-#else /* Embedded platform */\r
+#include <stdint.h>\r
\r
/* This type MUST be 8 bit */\r
-typedef unsigned char BYTE;\r
+typedef uint8_t BYTE;\r
\r
/* These types MUST be 16 bit */\r
-typedef short SHORT;\r
-typedef unsigned short WORD;\r
-typedef unsigned short WCHAR;\r
+typedef int16_t SHORT;\r
+typedef uint16_t WORD;\r
+typedef uint16_t WCHAR;\r
\r
/* These types MUST be 16 bit or 32 bit */\r
-typedef int INT;\r
+typedef int INT;\r
typedef unsigned int UINT;\r
\r
/* These types MUST be 32 bit */\r
-typedef long LONG;\r
-typedef unsigned long DWORD;\r
-\r
-#endif\r
+typedef int32_t LONG;\r
+typedef uint32_t DWORD;\r
\r
#endif\r