1
0
Fork 0

Frederic Bouvier:

Olivier discovered that environment_ctrl.cxx doesn't compile
when ENABLE_THREADS is not defined. The simple patch to correct
that is attached.
This commit is contained in:
ehofman 2004-09-09 08:32:11 +00:00
parent 9e315c8797
commit bfd8a50294

View file

@ -323,9 +323,11 @@ FGMetarEnvironmentCtrl::FGMetarEnvironmentCtrl ()
fetch_elapsed( 9999.0 ), fetch_elapsed( 9999.0 ),
proxy_host( fgGetNode("/sim/presets/proxy/host", true) ), proxy_host( fgGetNode("/sim/presets/proxy/host", true) ),
proxy_port( fgGetNode("/sim/presets/proxy/port", true) ), proxy_port( fgGetNode("/sim/presets/proxy/port", true) ),
proxy_auth( fgGetNode("/sim/presets/proxy/authentication", true) ), proxy_auth( fgGetNode("/sim/presets/proxy/authentication", true) )
_error_dt( 0.0 ), #if defined(ENABLE_THREADS) && ENABLE_THREADS
,_error_dt( 0.0 ),
_error_count( 0 ) _error_count( 0 )
#endif
{ {
#if defined(ENABLE_THREADS) && ENABLE_THREADS #if defined(ENABLE_THREADS) && ENABLE_THREADS
thread = new MetarThread(this); thread = new MetarThread(this);