diff options
author | Howard Chu <hyc@symas.com> | 2019-01-17 19:25:31 +0000 |
---|---|---|
committer | Howard Chu <hyc@symas.com> | 2019-01-17 19:49:26 +0000 |
commit | efec3ed23582b906fbb8c11b906d0271fb67c3da (patch) | |
tree | 5649464e926bdc36d5611fc0a98e6d3d96ede533 /external/db_drivers/liblmdb/midl.h | |
parent | Merge pull request #4927 (diff) | |
download | monero-efec3ed23582b906fbb8c11b906d0271fb67c3da.tar.xz |
Resync to upstream mdb.master
Diffstat (limited to 'external/db_drivers/liblmdb/midl.h')
-rw-r--r-- | external/db_drivers/liblmdb/midl.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/external/db_drivers/liblmdb/midl.h b/external/db_drivers/liblmdb/midl.h index 1555ecb19..0f826771a 100644 --- a/external/db_drivers/liblmdb/midl.h +++ b/external/db_drivers/liblmdb/midl.h @@ -11,7 +11,8 @@ /* $OpenLDAP$ */ /* This work is part of OpenLDAP Software <http://www.openldap.org/>. * - * Copyright 2000-2015 The OpenLDAP Foundation. + * Copyright 2000-2019 The OpenLDAP Foundation. + * Portions Copyright 2001-2019 Howard Chu, Symas Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -26,8 +27,7 @@ #ifndef _MDB_MIDL_H_ #define _MDB_MIDL_H_ -#include <stddef.h> -#include <inttypes.h> +#include "lmdb.h" #ifdef __cplusplus extern "C" { @@ -43,11 +43,7 @@ extern "C" { /** A generic unsigned ID number. These were entryIDs in back-bdb. * Preferably it should have the same size as a pointer. */ -#ifdef MDB_VL32 -typedef uint64_t MDB_ID; -#else -typedef size_t MDB_ID; -#endif +typedef mdb_size_t MDB_ID; /** An IDL is an ID List, a sorted array of IDs. The first * element of the array is a counter for how many actual |