From deca28a33bcd913abeaf03017c52b1d2e9fd50e7 Mon Sep 17 00:00:00 2001 From: Christian Hopps Date: Thu, 20 May 2021 19:22:14 -0400 Subject: tests: add grpc unit test Test uses staticd which required some C++ header protections. Additionally, the test also runs in the ubuntu20 docker container as grpc is supported there by the packaging system. Signed-off-by: Christian Hopps --- lib/zebra.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/zebra.h') diff --git a/lib/zebra.h b/lib/zebra.h index 3b624117de..6a02dcb922 100644 --- a/lib/zebra.h +++ b/lib/zebra.h @@ -217,6 +217,10 @@ #define static_cast(l, r) (r) #endif +#ifdef __cplusplus +extern "C" { +#endif + #ifndef HAVE_STRLCAT size_t strlcat(char *__restrict dest, const char *__restrict src, size_t destsize); @@ -379,4 +383,8 @@ typedef uint32_t route_tag_t; #define ROUTE_TAG_MAX UINT32_MAX #define ROUTE_TAG_PRI PRIu32 +#ifdef __cplusplus +} +#endif + #endif /* _ZEBRA_H */ -- cgit v1.2.3