diff options
author | Marcus Brinkmann <marcus@gnu.org> | 2003-08-09 16:40:17 +0000 |
---|---|---|
committer | Marcus Brinkmann <marcus@gnu.org> | 2003-08-09 16:40:17 +0000 |
commit | dfe7c12cf5802bb0ba99e5d68b67d1c840cee1c8 (patch) | |
tree | 856d5bcca89f5f2b36f4d0227a3ebc34e8577ffd /fatfs | |
parent | c9404ef427b7e57f986c1a83ec54fed86def5c58 (diff) |
2003-08-09 Marcus Brinkmann <marcus@gnu.org>
* fat.h: Include <byteswap.h>.
Diffstat (limited to 'fatfs')
-rw-r--r-- | fatfs/ChangeLog | 4 | ||||
-rw-r--r-- | fatfs/fat.h | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/fatfs/ChangeLog b/fatfs/ChangeLog index 9d282f1f..73295084 100644 --- a/fatfs/ChangeLog +++ b/fatfs/ChangeLog @@ -1,7 +1,7 @@ 2003-08-09 Marcus Brinkmann <marcus@gnu.org> - * fat.h (read_dword) [BYTE_ORDER == BIG_ENDIAN]: Use bswap_32 to - swap bytes. + * fat.h: Include <byteswap.h>. + (read_dword) [BYTE_ORDER == BIG_ENDIAN]: Use bswap_32 to swap bytes. (write_dword) [BYTE_ORDER == BIG_ENDIAN]: Likewise. (read_word) [BYTE_ORDER == BIG_ENDIAN]: Use bswap_16 to swap bytes. (write_word) [BYTE_ORDER == BIG_ENDIAN]: Likewise. diff --git a/fatfs/fat.h b/fatfs/fat.h index a76e37f8..87af27db 100644 --- a/fatfs/fat.h +++ b/fatfs/fat.h @@ -346,6 +346,7 @@ extern cluster_t nr_of_clusters; /* Numeric conversions for these fields. */ #include <endian.h> +#include <byteswap.h> static inline unsigned int read_dword (unsigned char *addr) |