summaryrefslogtreecommitdiff
path: root/lib/typesafe.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/typesafe.h
parent65c2593a12dcd2688e2d83eba6a39c0df519c4b1 (diff)
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/typesafe.h')
-rw-r--r--lib/typesafe.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/typesafe.h b/lib/typesafe.h
index 93258c5954..fc028049a4 100644
--- a/lib/typesafe.h
+++ b/lib/typesafe.h
@@ -6,10 +6,12 @@
#ifndef _FRR_TYPESAFE_H
#define _FRR_TYPESAFE_H
+#ifndef _TYPESAFE_EXPAND_MACROS
#include <stddef.h>
#include <stdint.h>
#include <stdbool.h>
#include "compiler.h"
+#endif /* _TYPESAFE_EXPAND_MACROS */
#ifdef __cplusplus
extern "C" {