From 3224391860b99b9d1eb97461c7a2de77f21ea7aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Tue, 2 Mar 2004 22:04:57 +0000 Subject: [PATCH] make it possible to use libsl from c++ From: Mattias Amnefelt git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13415 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/sl/sl.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/sl/sl.h b/lib/sl/sl.h index ab9fc890b..476136e28 100644 --- a/lib/sl/sl.h +++ b/lib/sl/sl.h @@ -49,6 +49,10 @@ struct sl_cmd { typedef struct sl_cmd SL_cmd; +#ifdef __cplusplus +extern "C" { +#endif + void sl_help (SL_cmd *, int argc, char **argv); int sl_loop (SL_cmd *, const char *prompt); int sl_command_loop (SL_cmd *cmds, const char *prompt, void **data); @@ -56,5 +60,8 @@ int sl_command (SL_cmd *cmds, int argc, char **argv); int sl_make_argv(char*, int*, char***); void sl_apropos (SL_cmd *cmd, const char *topic); +#ifdef __cplusplus +} +#endif #endif /* _SL_H */