diff --git a/Detectors/TRD/pid/include/TRDPID/ML.h b/Detectors/TRD/pid/include/TRDPID/ML.h index 5165996d24803..011d8c9ee9c9b 100644 --- a/Detectors/TRD/pid/include/TRDPID/ML.h +++ b/Detectors/TRD/pid/include/TRDPID/ML.h @@ -21,7 +21,11 @@ #include "DataFormatsTRD/PID.h" #include "Framework/ProcessingContext.h" #include "Framework/InputRecord.h" +#if __has_include() #include +#else +#include +#endif #include #include #include diff --git a/Detectors/TRD/pid/src/ML.cxx b/Detectors/TRD/pid/src/ML.cxx index 488bf055a7f6c..785f3b05cc112 100644 --- a/Detectors/TRD/pid/src/ML.cxx +++ b/Detectors/TRD/pid/src/ML.cxx @@ -28,7 +28,11 @@ #include "DetectorsBase/Propagator.h" #include +#if __has_include() #include +#else +#include +#endif #include #include diff --git a/Detectors/ZDC/fastsimulation/include/FastSimulations.h b/Detectors/ZDC/fastsimulation/include/FastSimulations.h index 9244ceb894b0a..987b68efc8102 100644 --- a/Detectors/ZDC/fastsimulation/include/FastSimulations.h +++ b/Detectors/ZDC/fastsimulation/include/FastSimulations.h @@ -17,7 +17,11 @@ #ifndef O2_ZDC_FAST_SIMULATIONS_H #define O2_ZDC_FAST_SIMULATIONS_H +#if __has_include() #include +#else +#include +#endif #include #include diff --git a/Detectors/ZDC/fastsimulation/include/Processors.h b/Detectors/ZDC/fastsimulation/include/Processors.h index b9836484fe871..4ae4d0786bdd9 100644 --- a/Detectors/ZDC/fastsimulation/include/Processors.h +++ b/Detectors/ZDC/fastsimulation/include/Processors.h @@ -17,7 +17,11 @@ #ifndef O2_ZDC_FAST_SIMULATIONS_PROCESSORS_H #define O2_ZDC_FAST_SIMULATIONS_PROCESSORS_H +#if __has_include() #include +#else +#include +#endif #include #include diff --git a/Detectors/ZDC/simulation/include/ZDCSimulation/Detector.h b/Detectors/ZDC/simulation/include/ZDCSimulation/Detector.h index a150f8b78fe8b..6e0bf0667a95b 100644 --- a/Detectors/ZDC/simulation/include/ZDCSimulation/Detector.h +++ b/Detectors/ZDC/simulation/include/ZDCSimulation/Detector.h @@ -26,7 +26,13 @@ // inclusions and forward decl for fast sim #ifdef ZDC_FASTSIM_ONNX + +#if __has_include() #include +#else +#include +#endif + namespace o2::zdc { namespace fastsim