From 5e2444690bd0d2003e7d283f890b33e11ddd371f Mon Sep 17 00:00:00 2001 From: Renato Westphal Date: Thu, 7 Feb 2019 20:10:31 -0200 Subject: lib: add extern "C" {} blocks to all libfrr headers These are necessary to use functions defined in these headers from C++. Signed-off-by: David Lamparter Signed-off-by: Renato Westphal --- lib/lua.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'lib/lua.h') diff --git a/lib/lua.h b/lib/lua.h index 8020a22711..a864ab30e0 100644 --- a/lib/lua.h +++ b/lib/lua.h @@ -29,6 +29,10 @@ #include #include +#ifdef __cplusplus +extern "C" { +#endif + /* * These functions are helper functions that * try to glom some of the lua_XXX functionality @@ -75,5 +79,10 @@ enum lua_rm_status lua_run_rm_rule(lua_State *L, const char *rule); */ const char *get_string(lua_State *L, const char *key); int get_integer(lua_State *L, const char *key); + +#ifdef __cplusplus +} +#endif + #endif #endif -- cgit v1.2.3