mirror of
https://github.com/isar/libmdbx.git
synced 2025-08-19 19:39:26 +08:00
mdbx-windows: more crutches for MinGW.
More for https://github.com/erthink/libmdbx/issues/155 Change-Id: I7de6122ff160372b2dcfd2a0a26e332cb52d0560
This commit is contained in:
26
mdbx.h++
26
mdbx.h++
@@ -1652,8 +1652,18 @@ struct LIBMDBX_API_TYPE map_handle {
|
||||
map_handle::state state) noexcept;
|
||||
info(const info &) noexcept = default;
|
||||
info &operator=(const info &) noexcept = default;
|
||||
MDBX_CXX11_CONSTEXPR ::mdbx::key_mode key_mode() const noexcept;
|
||||
MDBX_CXX11_CONSTEXPR ::mdbx::value_mode value_mode() const noexcept;
|
||||
#if CONSTEXPR_ENUM_FLAGS_OPERATIONS
|
||||
MDBX_CXX11_CONSTEXPR
|
||||
#else
|
||||
inline
|
||||
#endif
|
||||
::mdbx::key_mode key_mode() const noexcept;
|
||||
#if CONSTEXPR_ENUM_FLAGS_OPERATIONS
|
||||
MDBX_CXX11_CONSTEXPR
|
||||
#else
|
||||
inline
|
||||
#endif
|
||||
::mdbx::value_mode value_mode() const noexcept;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -3263,13 +3273,17 @@ MDBX_CXX11_CONSTEXPR map_handle::info::info(map_handle::flags flags,
|
||||
map_handle::state state) noexcept
|
||||
: flags(flags), state(state) {}
|
||||
|
||||
MDBX_CXX11_CONSTEXPR ::mdbx::key_mode
|
||||
map_handle::info::key_mode() const noexcept {
|
||||
#if CONSTEXPR_ENUM_FLAGS_OPERATIONS
|
||||
MDBX_CXX11_CONSTEXPR
|
||||
#endif
|
||||
::mdbx::key_mode map_handle::info::key_mode() const noexcept {
|
||||
return ::mdbx::key_mode(flags & (MDBX_REVERSEKEY | MDBX_INTEGERKEY));
|
||||
}
|
||||
|
||||
MDBX_CXX11_CONSTEXPR ::mdbx::value_mode
|
||||
map_handle::info::value_mode() const noexcept {
|
||||
#if CONSTEXPR_ENUM_FLAGS_OPERATIONS
|
||||
MDBX_CXX11_CONSTEXPR
|
||||
#endif
|
||||
::mdbx::value_mode map_handle::info::value_mode() const noexcept {
|
||||
return ::mdbx::value_mode(flags & (MDBX_DUPSORT | MDBX_REVERSEDUP |
|
||||
MDBX_DUPFIXED | MDBX_INTEGERDUP));
|
||||
}
|
||||
|
Reference in New Issue
Block a user