Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Do not #define __has_feature
authorGabriel Corona <gabriel.corona@loria.fr>
Fri, 24 Jul 2015 11:23:28 +0000 (13:23 +0200)
committerGabriel Corona <gabriel.corona@loria.fr>
Fri, 24 Jul 2015 13:08:20 +0000 (15:08 +0200)
src/mc/mc_forward.hpp

index 932d333..551bee4 100644 (file)
 #define SIMGRID_MC_FORWARD_HPP
 
 #ifndef __has_feature
-  #define __has_feature(x) 0
-#endif
-
-#if __has_feature(cxx_override_control)
-  #define MC_OVERRIDE override
-#else
   #define MC_OVERRIDE
+#else
+  #if __has_feature(cxx_override_control)
+    #define MC_OVERRIDE override
+  #else
+    #define MC_OVERRIDE
+  #endif
 #endif
 
 namespace simgrid {