mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-02 00:34:13 +08:00
mdbx: drop '__packed'.
Change-Id: Idf3e510733adb2b12b94fe1dcd22f76e02df955b
This commit is contained in:
parent
6f6b360aba
commit
db4ab61a0c
@ -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)))
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user