]> AND Private Git Repository - loba.git/blobdiff - simgrid_features.h
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
Fix include for <simgrid/config.h>.
[loba.git] / simgrid_features.h
index 56fcbfbc71eac9905cd3ca48f4f13f83c02e44c7..d808ba29524e640b08643d999b43c993d3487810 100644 (file)
@@ -1,22 +1,19 @@
 #ifndef SIMGRID_FEATURES_H
 #define SIMGRID_FEATURES_H
 
 #ifndef SIMGRID_FEATURES_H
 #define SIMGRID_FEATURES_H
 
-/* What is defined here:
- * =====================
- *
- * MSG_WAIT_DESTROYS_COMMS      1 if MSG_wait destroys communications
- *                              (has changed after SimGrid 3.5)
- */
-
-#if !defined(SIMGRID_VERSION) // ========== SimGrid <= 3.5 ============= //
-
-#define MSG_WAIT_DESTROYS_COMMS 1
-
-#else  // ================================= SimGrid > 3.5 ============== //
-
-#define MSG_WAIT_DESTROYS_COMMS 0
-
-#endif  // ============================================================= //
+#if defined(__has_include)
+#  if __has_include(<simgrid/config.h>)
+#    include <simgrid/config.h>
+#  else
+#    include <simgrid_config.h>
+#  endif
+#else
+#  warning "__has_include is not defined"
+#endif
+
+#if !defined(SIMGRID_VERSION) || SIMGRID_VERSION < 31800UL // == SG < 3.18 == //
+#  error "Unsupported SimGrid version.  Need version >= 3.18"
+#endif // =================================================================== //
 
 #endif // !SIMGRID_FEATURES_H
 
 
 #endif // !SIMGRID_FEATURES_H