mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-04 16:24:12 +08:00
mdbx: define MDBX_ENODATA == 9919
on systems without ENODATA
.
As workaround for incompatibility C and C++ code using LLVM's C++ libraries/headers on on systems without native `ENODATA`.
This commit is contained in:
parent
a2141ceaac
commit
085a97f835
2
mdbx.h
2
mdbx.h
@ -1737,7 +1737,7 @@ enum MDBX_error_t {
|
|||||||
#ifdef ENODATA
|
#ifdef ENODATA
|
||||||
MDBX_ENODATA = ENODATA,
|
MDBX_ENODATA = ENODATA,
|
||||||
#else
|
#else
|
||||||
MDBX_ENODATA = -1,
|
MDBX_ENODATA = 9919 /* for compatibility with LLVM's C++ libraries/headers */,
|
||||||
#endif /* ENODATA */
|
#endif /* ENODATA */
|
||||||
MDBX_EINVAL = EINVAL,
|
MDBX_EINVAL = EINVAL,
|
||||||
MDBX_EACCESS = EACCES,
|
MDBX_EACCESS = EACCES,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user