diff options
-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) |