X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=FDM%2Fflight.hxx;h=00d7ba42a462af98624ac0b1ff5f3ca72ab14bd4;hb=bf5fb5108b52e9cec2ed7d5038ad0dca822f890c;hp=f9c077f4cd243a6c9aabe37a3d584e20c1737316;hpb=cf2fa0f2137cfbf48976bdd7738c32ce278521c7;p=flightgear.git diff --git a/FDM/flight.hxx b/FDM/flight.hxx index f9c077f4c..00d7ba42a 100644 --- a/FDM/flight.hxx +++ b/FDM/flight.hxx @@ -26,11 +26,11 @@ #define _FLIGHT_H -#include +#include -#ifdef __cplusplus -extern "C" { +#ifndef __cplusplus +# error This library requires C++ #endif @@ -403,18 +403,16 @@ int fgFlightModelInit(int model, fgFLIGHT *f, double dt); int fgFlightModelUpdate(int model, fgFLIGHT *f, int multiloop); /* Set the altitude (force) */ -int fgFlightModelSetAltitude(int model, fgFLIGHT *f, double alt_meters); - - -#ifdef __cplusplus -} -#endif +void fgFlightModelSetAltitude(int model, fgFLIGHT *f, double alt_meters); #endif /* _FLIGHT_H */ // $Log$ +// Revision 1.2 1998/10/16 23:27:41 curt +// C++-ifying. +// // Revision 1.1 1998/10/16 20:16:44 curt // Renamed flight.[ch] to flight.[ch]xx //