X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=include%2Fwimlib%2Ftypes.h;fp=include%2Fwimlib%2Ftypes.h;h=561268db79920c5251310862bb3ce76db7bb244d;hp=faf290c96f04c20d2937dbbe64cf6ca4e4039d40;hb=f3ab01445d6184f7c5ffd0251667de7ef7437f9a;hpb=f55116f8cdb1581ec14b91a231292d464194bac3 diff --git a/include/wimlib/types.h b/include/wimlib/types.h index faf290c9..561268db 100644 --- a/include/wimlib/types.h +++ b/include/wimlib/types.h @@ -19,6 +19,19 @@ typedef int8_t s8; typedef int16_t s16; typedef int32_t s32; typedef int64_t s64; + +/* Unsigned little endian types of exact size */ +typedef uint8_t le8; +typedef uint16_t le16; +typedef uint32_t le32; +typedef uint64_t le64; + +/* Signed little endian types of exact size (declare as unsigned to avoid sign + * extension on big-endian architectures) */ +typedef uint8_t sle8; +typedef uint16_t sle16; +typedef uint32_t sle32; +typedef uint64_t sle64; #endif /* A pointer to 'utf16lechar' indicates a UTF-16LE encoded string */