diff options
author | Eivind Næss <eivnaes@yahoo.com> | 2023-03-04 05:47:11 +0000 |
---|---|---|
committer | Eivind Næss <eivnaes@yahoo.com> | 2023-03-17 14:18:53 +0000 |
commit | 4f3e40659fcccce45068473ae94cfead18260c77 (patch) | |
tree | e2abfad7e92176f1c2da5a93bcb63ad57c1294cd /pppd/cbcp.h | |
parent | 827e4952d6bcc8dd9c8fdda54a509e5b59685c34 (diff) | |
download | ppp-4f3e40659fcccce45068473ae94cfead18260c77.tar.gz |
Adding 'extern "C" {' and '}' declarations to exported header files
Signed-off-by: Eivind Næss <eivnaes@yahoo.com>
Diffstat (limited to 'pppd/cbcp.h')
-rw-r--r-- | pppd/cbcp.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/pppd/cbcp.h b/pppd/cbcp.h index e317cae..4bd106b 100644 --- a/pppd/cbcp.h +++ b/pppd/cbcp.h @@ -30,11 +30,15 @@ * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#ifndef CBCP_H -#define CBCP_H +#ifndef PPP_CBCP_H +#define PPP_CBCP_H #include "pppdconf.h" +#ifdef __cplusplus +extern "C" { +#endif + typedef struct cbcp_state { int us_unit; /* Interface unit number */ u_char us_id; /* Current id */ @@ -57,4 +61,9 @@ extern struct protent cbcp_protent; #define CB_CONF_USER 2 #define CB_CONF_ADMIN 3 #define CB_CONF_LIST 4 + +#ifdef __cplusplus +} #endif + +#endif // PPP_CBCP_H |