From: mfranz Date: Sat, 25 Jun 2005 07:57:42 +0000 (+0000) Subject: (Frederic Bouvier) avoid gcc'ism X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4732b96861fcac692adc90b7e29233a13a06d109;p=flightgear.git (Frederic Bouvier) avoid gcc'ism --- diff --git a/src/Input/fgjs.cxx b/src/Input/fgjs.cxx index 0f25b71bb..5a646cc99 100644 --- a/src/Input/fgjs.cxx +++ b/src/Input/fgjs.cxx @@ -354,7 +354,7 @@ int main( int argc, char *argv[] ) { } fstream fs; - fstream xfs[jss->getNumJoysticks()]; + fstream *xfs = new fstream[jss->getNumJoysticks()]; if (!usexml) { fs.open("fgfsrc.js",ios::out); } @@ -470,6 +470,7 @@ int main( int argc, char *argv[] ) { fs.close(); } delete jsi; + delete[] xfs; delete jss; cout << "Your joystick settings are in ";