From 61010c7b868bb7ceef4a04af23e2b139163dd431 Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Thu, 11 Nov 2010 14:57:05 +0100 Subject: Add extern "C" guards to all header files. --- lib/include/radsec/radsec-impl.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/include/radsec/radsec-impl.h') diff --git a/lib/include/radsec/radsec-impl.h b/lib/include/radsec/radsec-impl.h index 2b3d878..14801ab 100644 --- a/lib/include/radsec/radsec-impl.h +++ b/lib/include/radsec/radsec-impl.h @@ -19,6 +19,10 @@ enum rs_cred_type { }; typedef unsigned int rs_cred_type_t; +#if defined (__cplusplus) +extern "C" { +#endif + struct rs_packet; struct rs_credentials { @@ -108,6 +112,10 @@ int _rs_err_conn_push_err(struct rs_connection *conn, struct rs_error *err); +#if defined (__cplusplus) +} +#endif + /* Convenience macros. */ #define rs_calloc(h, nmemb, size) \ (h->alloc_scheme.calloc ? h->alloc_scheme.calloc : calloc)(nmemb, size) -- cgit v1.1