mdbx: drop '__packed'.

Change-Id: Idf3e510733adb2b12b94fe1dcd22f76e02df955b
This commit is contained in:
Leo Yuriev 2017-10-29 00:56:05 +03:00
parent 6f6b360aba
commit db4ab61a0c
2 changed files with 5 additions and 9 deletions

View File

@ -147,14 +147,6 @@
# endif
#endif /* __fallthrough */
#ifndef __packed
# if defined(__GNUC__) || __has_attribute(packed)
# define __packed __attribute__((packed))
# else
# define __packed
# endif
#endif /* __packed */
#ifndef __aligned
# if defined(__GNUC__) || __has_attribute(aligned)
# define __aligned(N) __attribute__((aligned(N)))

View File

@ -20,9 +20,11 @@
namespace chrono {
#pragma pack(push, 1)
typedef union time {
uint64_t fixedpoint;
struct __packed {
struct {
#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
uint32_t fractional;
union {
@ -42,6 +44,8 @@ typedef union time {
uint32_t seconds() const { return utc; }
} time;
#pragma pack(pop)
uint32_t ns2fractional(uint32_t);
uint32_t fractional2ns(uint32_t);
uint32_t us2fractional(uint32_t);