Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix: missing ifdef
authorPaul Bédaride <paul.bedaride@gmail.com>
Wed, 12 Feb 2014 10:00:40 +0000 (11:00 +0100)
committerPaul Bédaride <paul.bedaride@gmail.com>
Wed, 12 Feb 2014 10:00:40 +0000 (11:00 +0100)
src/surf/surf_c_bindings.cpp

index f153403..ded3bb9 100644 (file)
@@ -541,9 +541,11 @@ void surf_cpu_action_set_bound(surf_action_t action, double bound) {
   static_cast<CpuActionPtr>(action)->setBound(bound);
 }
 
   static_cast<CpuActionPtr>(action)->setBound(bound);
 }
 
+#ifdef HAVE_LATENCY_BOUND_TRACKING
 double surf_network_action_get_latency_limited(surf_action_t action) {
   return static_cast<NetworkActionPtr>(action)->getLatencyLimited();
 }
 double surf_network_action_get_latency_limited(surf_action_t action) {
   return static_cast<NetworkActionPtr>(action)->getLatencyLimited();
 }
+#endif
 
 surf_file_t surf_storage_action_get_file(surf_action_t action){
   return static_cast<StorageActionPtr>(action)->p_file;
 
 surf_file_t surf_storage_action_get_file(surf_action_t action){
   return static_cast<StorageActionPtr>(action)->p_file;