X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fshort_types%2Fshort_types.h;h=175377e9bab9e6d624d08654de31ff4214169e37;hp=f94ec0980fe759f26debbda91522d58366439742;hb=4f09cf20ca00fe38b0702e0556bbad2341595ed0;hpb=516c47790828cfb892fecdbe03a6928c345d29b2 diff --git a/ccan/short_types/short_types.h b/ccan/short_types/short_types.h index f94ec098..175377e9 100644 --- a/ccan/short_types/short_types.h +++ b/ccan/short_types/short_types.h @@ -15,18 +15,21 @@ typedef int16_t s16; typedef uint8_t u8; typedef int8_t s8; +/* Whichever they include first, they get these definitions. */ +#ifdef CCAN_ENDIAN_H /** * be64/be32/be16 - 64/32/16 bit big-endian representation. */ -typedef uint64_t be64; -typedef uint32_t be32; -typedef uint16_t be16; +typedef beint64_t be64; +typedef beint32_t be32; +typedef beint16_t be16; /** * le64/le32/le16 - 64/32/16 bit little-endian representation. */ -typedef uint64_t le64; -typedef uint32_t le32; -typedef uint16_t le16; +typedef leint64_t le64; +typedef leint32_t le32; +typedef leint16_t le16; +#endif #endif /* CCAN_SHORT_TYPES_H */