Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Do not #define __has_feature
[simgrid.git] / src / mc / mc_forward.hpp
index 9bb9813..551bee4 100644 (file)
 #ifndef SIMGRID_MC_FORWARD_HPP
 #define SIMGRID_MC_FORWARD_HPP
 
-#define MC_OVERRIDE
+#ifndef __has_feature
+  #define MC_OVERRIDE
+#else
+  #if __has_feature(cxx_override_control)
+    #define MC_OVERRIDE override
+  #else
+    #define MC_OVERRIDE
+  #endif
+#endif
 
 namespace simgrid {
 namespace mc {