]> git.mxchange.org Git - flightgear.git/blobdiff - Autopilot/autopilot.h
C++ - ifing the code a bit.
[flightgear.git] / Autopilot / autopilot.h
index b54572ee407447d41ad444b88afb6e31cfc88bf3..99c4b628743d6bf7dcc5588f2e0f20e09b27b344 100644 (file)
 #ifndef _AUTOPILOT_H
 #define _AUTOPILOT_H
                        
+
 #include <Aircraft/aircraft.h>
 #include <Flight/flight.h>
 #include <Controls/controls.h>
                        
                        
+#ifdef __cplusplus                                                          
+extern "C" {                            
+#endif                                   
+
 
 typedef struct {
                int Mode ; // the current mode the AP is operating in
@@ -50,5 +55,10 @@ int fgAPRun( void );
 void fgAPSetMode( int mode);
 
 
+#ifdef __cplusplus
+}
 #endif
-               
\ No newline at end of file
+
+
+#endif // _AUTOPILOT_H
+