diff options
Diffstat (limited to 'common/common.h')
| -rw-r--r-- | common/common.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/common/common.h b/common/common.h index fd97a4655cf5..a04b26ed8eb0 100644 --- a/common/common.h +++ b/common/common.h @@ -11,11 +11,7 @@ #define TCSASOFT 0 #endif -#ifdef DB_H_ABS_PATH -#include DB_H_ABS_PATH -#else #include <db.h> -#endif #include <regex.h> /* May refer to the bundled regex. */ #include <stdint.h> @@ -92,4 +88,11 @@ typedef enum { SEQ_ABBREV, SEQ_COMMAND, SEQ_INPUT } seq_t; #include "log.h" #include "mem.h" -#include "extern.h" +#include "common_extern.h" + +#ifndef SLIST_REMOVE_AFTER +#define SLIST_REMOVE_AFTER(elm, field) do { \ + SLIST_NEXT(elm, field) = \ + SLIST_NEXT(SLIST_NEXT(elm, field), field); \ +} while (0) +#endif |
