#ifndef _FF_INTEGER\r
#define _FF_INTEGER\r
\r
-#include <stdint.h>\r
+#ifdef _WIN32 /* FatFs development platform */\r
\r
-/* This type MUST be 8 bit */\r
-typedef uint8_t BYTE;\r
+#include <windows.h>\r
+#include <tchar.h>\r
+typedef unsigned __int64 QWORD;\r
\r
-/* These types MUST be 16 bit */\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
+#else /* Embedded platform */\r
+\r
+/* These types MUST be 16-bit or 32-bit */\r
+typedef int INT;\r
typedef unsigned int UINT;\r
\r
-/* These types MUST be 32 bit */\r
-typedef int32_t LONG;\r
-typedef uint32_t DWORD;\r
+/* This type MUST be 8-bit */\r
+typedef unsigned char BYTE;\r
+\r
+/* These types MUST be 16-bit */\r
+typedef short SHORT;\r
+typedef unsigned short WORD;\r
+typedef unsigned short WCHAR;\r
+\r
+/* These types MUST be 32-bit */\r
+typedef long LONG;\r
+typedef unsigned long DWORD;\r
+\r
+/* This type MUST be 64-bit (Remove this for C89 compatibility) */\r
+typedef unsigned long long QWORD;\r
+\r
+#endif\r
\r
#endif\r