lib: avoid include loop with assert.h

`assert.h` -> `xref.h` -> `typesafe.h` -> `assert.h`

Might be possible to do this more cleanly some way, but that way is not
obvious, so here's the "simple & dumb" approach.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
This commit is contained in:
David Lamparter 2021-10-22 16:59:42 +02:00
parent ef990bd94b
commit 8d4e934b08
4 changed files with 5 additions and 1 deletions

View file

@ -18,6 +18,8 @@
#include "config.h"
#endif
#include <assert.h>
#include "atomlist.h"
void atomlist_add_head(struct atomlist_head *h, struct atomlist_item *item)

View file

@ -17,6 +17,8 @@
#ifndef _FRRCU_H
#define _FRRCU_H
#include <assert.h>
#include "memory.h"
#include "atomlist.h"

View file

@ -20,6 +20,7 @@
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "typesafe.h"
#include "memory.h"

View file

@ -20,7 +20,6 @@
#include <stddef.h>
#include <stdint.h>
#include <stdbool.h>
#include <assert.h>
#include "compiler.h"
#ifdef __cplusplus