summaryrefslogtreecommitdiffstats
path: root/lib/atomlist.h
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2024-04-29 17:28:55 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2024-04-29 17:37:49 +0200
commit1badd1941b5392462f47975608a46c77454e1869 (patch)
tree34c0e79706946d0c3987b25ae5bee56017292aed /lib/atomlist.h
parentMerge pull request #15619 from opensourcerouting/fix/memory_optimizations (diff)
downloadfrr-1badd1941b5392462f47975608a46c77454e1869.tar.xz
frr-1badd1941b5392462f47975608a46c77454e1869.zip
python: add tool to expand typesafe definitions
This can be used to get less cryptic error/warnings from GCC when dealing with something typesafe container related. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/atomlist.h')
-rw-r--r--lib/atomlist.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/atomlist.h b/lib/atomlist.h
index 2b6a3a176..faf1d7324 100644
--- a/lib/atomlist.h
+++ b/lib/atomlist.h
@@ -6,8 +6,10 @@
#ifndef _FRR_ATOMLIST_H
#define _FRR_ATOMLIST_H
+#ifndef _TYPESAFE_EXPAND_MACROS
#include "typesafe.h"
#include "frratomic.h"
+#endif /* _TYPESAFE_EXPAND_MACROS */
#ifdef __cplusplus
extern "C" {