Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Give a real override if we know it's available
[simgrid.git] / src / mc / mc_forward.hpp
index 9bb9813..932d333 100644 (file)
 #ifndef SIMGRID_MC_FORWARD_HPP
 #define SIMGRID_MC_FORWARD_HPP
 
-#define MC_OVERRIDE
+#ifndef __has_feature
+  #define __has_feature(x) 0
+#endif
+
+#if __has_feature(cxx_override_control)
+  #define MC_OVERRIDE override
+#else
+  #define MC_OVERRIDE
+#endif
 
 namespace simgrid {
 namespace mc {