From 4732b96861fcac692adc90b7e29233a13a06d109 Mon Sep 17 00:00:00 2001 From: mfranz Date: Sat, 25 Jun 2005 07:57:42 +0000 Subject: [PATCH] (Frederic Bouvier) avoid gcc'ism --- src/Input/fgjs.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 "; -- 2.39.5