Update projects using FatFS and PetiteFatFS to the latest library versions.
[pub/USBasp.git] / Projects / Incomplete / StandaloneProgrammer / Lib / PetiteFATFs / integer.h
index 5ecedd9..5408fe6 100644 (file)
@@ -3,17 +3,21 @@
 /*-------------------------------------------*/
 
 #ifndef _INTEGER
+#define _INTEGER
+
+#ifdef _WIN32  /* FatFs development platform */
 
-#if 0
 #include <windows.h>
-#else
+#include <tchar.h>
+
+#else                  /* Embedded platform */
 
 /* These types must be 16-bit, 32-bit or larger integer */
 typedef int                            INT;
 typedef unsigned int   UINT;
 
 /* These types must be 8-bit integer */
-typedef signed char            CHAR;
+typedef char                   CHAR;
 typedef unsigned char  UCHAR;
 typedef unsigned char  BYTE;
 
@@ -28,11 +32,7 @@ typedef long                 LONG;
 typedef unsigned long  ULONG;
 typedef unsigned long  DWORD;
 
-/* Boolean type */
-typedef enum { FALSE = 0, TRUE } BOOL;
-
 #endif
 
-#define _INTEGER
 #endif