"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/endian_compat.h" between
dosfstools-4.0.tar.gz and dosfstools-4.1.tar.gz

About: dosfstools are utilities to create, check and label (MS-DOS) FAT filesystems.

endian_compat.h  (dosfstools-4.0):endian_compat.h  (dosfstools-4.1)
#ifndef ENDIAN_COMPAT_H #ifndef ENDIAN_COMPAT_H
#define ENDIAN_COMPAT_H #define ENDIAN_COMPAT_H
#if defined(HAVE_ENDIAN_H) #if defined(HAVE_ENDIAN_H)
#include <endian.h> #include <endian.h>
#elif defined(HAVE_SYS_ENDIAN_H) #elif defined(HAVE_SYS_ENDIAN_H)
#include <sys/endian.h> #include <sys/endian.h>
#elif defined(__APPLE__) #elif defined(HAVE_LIBKERN_OSBYTEORDER_H)
#include <libkern/OSByteOrder.h> #include <libkern/OSByteOrder.h>
#define htobe16(x) OSSwapHostToBigInt16(x) #define htobe16(x) OSSwapHostToBigInt16(x)
#define htole16(x) OSSwapHostToLittleInt16(x) #define htole16(x) OSSwapHostToLittleInt16(x)
#define be16toh(x) OSSwapBigToHostInt16(x) #define be16toh(x) OSSwapBigToHostInt16(x)
#define le16toh(x) OSSwapLittleToHostInt16(x) #define le16toh(x) OSSwapLittleToHostInt16(x)
#define htobe32(x) OSSwapHostToBigInt32(x) #define htobe32(x) OSSwapHostToBigInt32(x)
#define htole32(x) OSSwapHostToLittleInt32(x) #define htole32(x) OSSwapHostToLittleInt32(x)
#define be32toh(x) OSSwapBigToHostInt32(x) #define be32toh(x) OSSwapBigToHostInt32(x)
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS