Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Give a real override if we know it's available
authorGabriel Corona <gabriel.corona@loria.fr>
Thu, 23 Jul 2015 12:26:42 +0000 (14:26 +0200)
committerGabriel Corona <gabriel.corona@loria.fr>
Thu, 23 Jul 2015 12:26:42 +0000 (14:26 +0200)
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 {