Commit b20b10e2 authored by Simon Spannagel's avatar Simon Spannagel Committed by Håkan Wennlöf
Browse files

Correcting version number needed

parent a8c7c207
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -93,7 +93,7 @@ GeometryBuilderGeant4Module::GeometryBuilderGeant4Module(Configuration& config,
 * @throws ModuleError If a certain Geant4 dataset is not set or not available
 */
static void check_dataset_g4(const std::string& env_name) {
#if G4VERSION_NUMBER > 1100
#if G4VERSION_NUMBER >= 1110
    const char* file_name = G4FindDataDir(env_name.c_str());
#else
    const char* file_name = std::getenv(env_name.c_str());