From e8ad916ca237e4cc4822a67ca73cb975733f4847 Mon Sep 17 00:00:00 2001 From: curt Date: Thu, 22 Apr 1999 18:47:25 +0000 Subject: [PATCH] Wrap with extern "C" { } if building with __cplusplus compiler. --- Simulator/FDM/LaRCsim/ls_cockpit.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Simulator/FDM/LaRCsim/ls_cockpit.h b/Simulator/FDM/LaRCsim/ls_cockpit.h index 1ac8e63ee..f315b08dd 100644 --- a/Simulator/FDM/LaRCsim/ls_cockpit.h +++ b/Simulator/FDM/LaRCsim/ls_cockpit.h @@ -35,8 +35,11 @@ $Header$ $Log$ -Revision 1.1 1999/04/05 21:32:45 curt -Initial revision +Revision 1.2 1999/04/22 18:47:25 curt +Wrap with extern "C" { } if building with __cplusplus compiler. + +Revision 1.1.1.1 1999/04/05 21:32:45 curt +Start of 0.6.x branch. Revision 1.5 1998/10/17 01:34:14 curt C++ ifying ... @@ -70,6 +73,9 @@ Initial Flight Gear revision. #ifndef _LS_COCKPIT_H #define _LS_COCKPIT_H +#ifdef __cplusplus +extern "C" { +#endif typedef struct { float long_stick, lat_stick, rudder_pedal; @@ -104,4 +110,8 @@ extern COCKPIT cockpit_; #define Brake_pct cockpit_.brake_pct +#ifdef __cplusplus +} +#endif + #endif /* _LS_COCKPIT_H */