projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use ISO integer types.
[bertos.git]
/
bertos
/
fs
/
fatfs
/
src
/
integer.h
diff --git
a/bertos/fs/fatfs/src/integer.h
b/bertos/fs/fatfs/src/integer.h
index 851a78da2c2a81a533f7d7e057c3030fd4dced50..9d014a1b46f1d53b12e86fd9d8cab46c096827ad 100644
(file)
--- a/
bertos/fs/fatfs/src/integer.h
+++ b/
bertos/fs/fatfs/src/integer.h
@@
-4,29
+4,31
@@
#ifndef _INTEGER
#ifndef _INTEGER
+#include <cfg/compiler.h>
+
#if 0
#include <windows.h>
#else
/* These types must be 16-bit, 32-bit or larger integer */
#if 0
#include <windows.h>
#else
/* These types must be 16-bit, 32-bit or larger integer */
-typedef int
INT;
-typedef u
nsigned int
UINT;
+typedef int
16_t
INT;
+typedef u
int16_t
UINT;
/* These types must be 8-bit integer */
/* These types must be 8-bit integer */
-typedef
signed char
CHAR;
-typedef u
nsigned char
UCHAR;
-typedef u
nsigned char
BYTE;
+typedef
int8_t
CHAR;
+typedef u
int8_t
UCHAR;
+typedef u
int8_t
BYTE;
/* These types must be 16-bit integer */
/* These types must be 16-bit integer */
-typedef
short
SHORT;
-typedef u
nsigned short
USHORT;
-typedef u
nsigned short
WORD;
-typedef u
nsigned short
WCHAR;
+typedef
int16_t
SHORT;
+typedef u
int16_t
USHORT;
+typedef u
int16_t
WORD;
+typedef u
int16_t
WCHAR;
/* These types must be 32-bit integer */
/* These types must be 32-bit integer */
-typedef
long
LONG;
-typedef u
nsigned long
ULONG;
-typedef u
nsigned long
DWORD;
+typedef
int32_t
LONG;
+typedef u
int32_t
ULONG;
+typedef u
int32_t
DWORD;
/* Boolean type */
typedef enum { FALSE = 0, TRUE } BOOL;
/* Boolean type */
typedef enum { FALSE = 0, TRUE } BOOL;