diff --git a/src/ATC/atcutils.hxx b/src/ATC/atcutils.hxx index fddb78570..d2d2366a0 100644 --- a/src/ATC/atcutils.hxx +++ b/src/ATC/atcutils.hxx @@ -52,7 +52,8 @@ #if !ENABLE_ATCDCL class SGPath; -struct ATCData; + + // Possible types of ATC type that the radios may be tuned to. // INVALID implies not tuned in to anything. @@ -67,6 +68,18 @@ enum atc_type { INVALID /* must be last element; see ATC_NUM_TYPES */ }; +struct ATCData { + ATCData() : type(INVALID), cart(0, 0, 0), freq(0), range(0) {} + atc_type type; + SGGeod geod; + SGVec3d cart; + unsigned short int freq; + unsigned short int range; + std::string ident; + std::string name; +}; + + // A list of ATC stations typedef std::list < ATCData > comm_list_type; diff --git a/src/Instrumentation/KLN89/kln89_page_apt.cxx b/src/Instrumentation/KLN89/kln89_page_apt.cxx index 96cceea0d..9166db43a 100644 --- a/src/Instrumentation/KLN89/kln89_page_apt.cxx +++ b/src/Instrumentation/KLN89/kln89_page_apt.cxx @@ -26,7 +26,11 @@ #endif #include "kln89_page_apt.hxx" -#include +#if ENABLE_ATCDCL +# include +#else + #include +#endif #include
#include #include