Go to the documentation of this file.
14 #ifndef LIBSBP_COMMON_H
15 #define LIBSBP_COMMON_H
22 #ifndef COMMON_INT_TYPES
23 #define COMMON_INT_TYPES
51 #if defined(__GNUC__) || defined(__clang__)
53 #define SBP_PACK_START
55 #define SBP_ATTR_PACKED __attribute__((packed))
57 #elif defined(_MSC_VER)
59 #define SBP_PACK_START __pragma(pack(1));
60 #define SBP_PACK_END __pragma(pack());
61 #define SBP_ATTR_PACKED
65 #if !defined(SBP_PACK_START) || !defined(SBP_PACK_END) || !defined(SBP_ATTR_PACKED)
66 #error Unknown compiler, please override SBP_PACK_START, SBP_PACK_END, and SBP_ATTR_PACKED
int8_t s8
Signed 8-bit integer.
int16_t s16
Signed 16-bit integer.
int64_t s64
Signed 64-bit integer.
uint8_t u8
Unsigned 8-bit integer.
uint64_t u64
Unsigned 64-bit integer.
uint16_t u16
Unsigned 16-bit integer.
uint32_t u32
Unsigned 32-bit integer.
int32_t s32
Signed 32-bit integer.