diff options
| author | Christian Hopps <chopps@labn.net> | 2021-05-20 19:22:14 -0400 |
|---|---|---|
| committer | Christian Hopps <chopps@gmail.com> | 2021-06-06 18:03:17 +0000 |
| commit | deca28a33bcd913abeaf03017c52b1d2e9fd50e7 (patch) | |
| tree | cac3453ef98cab1e6180430a2f2addc0b6a6efdf /lib/zebra.h | |
| parent | 6198bc98bea5034277de2ef1bec34929c9346894 (diff) | |
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 <chopps@labn.net>
Diffstat (limited to 'lib/zebra.h')
| -rw-r--r-- | lib/zebra.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 */ |
