mirror of
https://github.com/micropython/micropython.git
synced 2025-09-07 02:10:52 +02:00
This provides a MicroPython-specific berkeley-db configuration in extmod/berkeley-db/berkeley_db_config_port.h, and cleans up the include path for this library. Fixes issue #13092. Signed-off-by: Damien George <damien@micropython.org>
17 lines
361 B
C
17 lines
361 B
C
// Berkeley-db configuration.
|
|
|
|
#define __DBINTERFACE_PRIVATE 1
|
|
#define mpool_error printf
|
|
#define abort abort_
|
|
#define virt_fd_t void*
|
|
|
|
#ifdef MICROPY_BERKELEY_DB_DEFPSIZE
|
|
#define DEFPSIZE MICROPY_BERKELEY_DB_DEFPSIZE
|
|
#endif
|
|
|
|
#ifdef MICROPY_BERKELEY_DB_MINCACHE
|
|
#define MINCACHE MICROPY_BERKELEY_DB_MINCACHE
|
|
#endif
|
|
|
|
__attribute__((noreturn)) void abort_(void);
|