Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
simplification: if jedule headers are loaded, jedule is here and needed
authorMartin Quinson <martin.quinson@loria.fr>
Sat, 16 Jun 2018 23:14:21 +0000 (01:14 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Mon, 18 Jun 2018 21:54:03 +0000 (23:54 +0200)
include/simgrid/jedule/jedule.hpp
include/simgrid/jedule/jedule_events.hpp
include/simgrid/jedule/jedule_platform.hpp
include/simgrid/jedule/jedule_sd_binding.h

index 8c867b1..8c9ef39 100644 (file)
@@ -6,14 +6,11 @@
 #ifndef JEDULE_HPP_
 #define JEDULE_HPP_
 
-#include <simgrid/config.h>
 #include <simgrid/jedule/jedule_events.hpp>
 #include <simgrid/jedule/jedule_platform.hpp>
 
 #include <cstdio>
 
-#if SIMGRID_HAVE_JEDULE
-
 namespace simgrid {
 namespace jedule{
 
@@ -33,6 +30,5 @@ public:
 }
 
 typedef simgrid::jedule::Jedule *jedule_t;
-#endif
 
 #endif /* JEDULE_HPP_ */
index be98ba9..71bced7 100644 (file)
@@ -8,14 +8,12 @@
 
 #include <simgrid/jedule/jedule_platform.hpp>
 
-#include <simgrid/config.h>
 #include <simgrid/forward.h>
 
 #include <vector>
 #include <string>
 #include <unordered_map>
 
-#if SIMGRID_HAVE_JEDULE
 namespace simgrid {
 namespace jedule{
 
@@ -41,6 +39,5 @@ private:
 }
 
 typedef simgrid::jedule::Event* jed_event_t;
-#endif
 
 #endif /* JEDULE_EVENTS_H_ */
index e7575b8..5e40d67 100644 (file)
@@ -6,7 +6,6 @@
 #ifndef JED_SIMGRID_PLATFORM_H_
 #define JED_SIMGRID_PLATFORM_H_
 
-#include <simgrid/config.h>
 #include <simgrid/forward.h>
 #include <xbt/dynar.h>
 
@@ -14,8 +13,6 @@
 #include <vector>
 #include <string>
 
-#if SIMGRID_HAVE_JEDULE
-
 namespace simgrid {
 namespace jedule{
 class XBT_PUBLIC Container {
@@ -55,6 +52,4 @@ typedef simgrid::jedule::Container * jed_container_t;
 typedef simgrid::jedule::Subset * jed_subset_t;
 void get_resource_selection_by_hosts(std::vector<jed_subset_t>* subset_list, std::vector<sg_host_t> *host_list);
 
-#endif
-
 #endif /* JED_SIMGRID_PLATFORM_H_ */
index f9c958e..95a009d 100644 (file)
@@ -6,16 +6,13 @@
 #ifndef JEDULE_SD_BINDING_H_
 #define JEDULE_SD_BINDING_H_
 
-#include <simgrid/config.h>
 #include <simgrid/simdag.h>
 
-#if SIMGRID_HAVE_JEDULE
 SG_BEGIN_DECL()
 XBT_PUBLIC void jedule_log_sd_event(SD_task_t task);
 XBT_PUBLIC void jedule_sd_init(void);
 XBT_PUBLIC void jedule_sd_exit(void);
 XBT_PUBLIC void jedule_sd_dump(const char* filename);
 SG_END_DECL()
-#endif
 
 #endif /* JEDULE_SD_BINDING_H_ */