From 06e4fb50174f351e5194ba1ece62b74f9768f01d Mon Sep 17 00:00:00 2001 From: Frank Gaede <frank.gaede@desy.de> Date: Mon, 14 Jul 2014 12:33:50 +0000 Subject: [PATCH] - made compatible with older geant4 versions (9.5) --- DDG4/src/Geant4UIManager.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/DDG4/src/Geant4UIManager.cpp b/DDG4/src/Geant4UIManager.cpp index a2fbc2107..97ebd1d9b 100644 --- a/DDG4/src/Geant4UIManager.cpp +++ b/DDG4/src/Geant4UIManager.cpp @@ -52,7 +52,13 @@ G4UIExecutive* Geant4UIManager::startUI() { const char* args[] = {"DDG4","",""}; printout(INFO,"Geant4UIManager","+++ Starting G4UIExecutive '%s' of type %s....", args[0], m_sessionType.c_str()); + +#if (G4VERSION_NUMBER >= 960) ui = new G4UIExecutive(1,(char**)args,m_sessionType.c_str()); +#else + ui = new G4UIExecutive(1,(char**)args ); +#endif + return ui; } -- GitLab