X-Git-Url: http://cloudbase.mooo.com/gitweb/z180-stamp.git/blobdiff_plain/7f552300815ccadd45ebb3e7f0ae72a3b2e0c4e5..5013b94fb43ed4e86efb5d1d72350537cd1a3f8f:/include/integer.h diff --git a/include/integer.h b/include/integer.h index a263f7c..4660ed6 100644 --- a/include/integer.h +++ b/include/integer.h @@ -5,22 +5,34 @@ #ifndef _FF_INTEGER #define _FF_INTEGER -#include +#ifdef _WIN32 /* FatFs development platform */ -/* This type MUST be 8 bit */ -typedef uint8_t BYTE; +#include +#include +typedef unsigned __int64 QWORD; -/* These types MUST be 16 bit */ -typedef int16_t SHORT; -typedef uint16_t WORD; -typedef uint16_t WCHAR; -/* These types MUST be 16 bit or 32 bit */ -typedef int INT; +#else /* Embedded platform */ + +/* These types MUST be 16-bit or 32-bit */ +typedef int INT; typedef unsigned int UINT; -/* These types MUST be 32 bit */ -typedef int32_t LONG; -typedef uint32_t DWORD; +/* This type MUST be 8-bit */ +typedef unsigned char BYTE; + +/* These types MUST be 16-bit */ +typedef short SHORT; +typedef unsigned short WORD; +typedef unsigned short WCHAR; + +/* These types MUST be 32-bit */ +typedef long LONG; +typedef unsigned long DWORD; + +/* This type MUST be 64-bit (Remove this for C89 compatibility) */ +typedef unsigned long long QWORD; + +#endif #endif