Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
use #if instead if #ifdef for the things in the public config header
[simgrid.git] / examples / simdag / scheduling / minmin_test.c
index 6ac0f78..437ba69 100644 (file)
@@ -5,14 +5,10 @@
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
 /* simple test to schedule a DAX file with the Min-Min algorithm.           */
-#include <stdlib.h>
-#include <stdio.h>
 #include <string.h>
 #include "simgrid/simdag.h"
-#include "xbt/log.h"
-#include "xbt/ex.h"
 
-#ifdef HAVE_JEDULE
+#if HAVE_JEDULE
 #include "simgrid/jedule/jedule_sd_binding.h"
 #endif
 
@@ -257,7 +253,7 @@ int main(int argc, char **argv)
   XBT_INFO("Simulation Time: %f", SD_get_clock());
   XBT_INFO("------------------- Produce the trace file---------------------------");
   XBT_INFO("Producing a jedule output (if active) of the run into %s", tracefilename?tracefilename:"minmin_test.jed");
-#ifdef HAVE_JEDULE
+#if HAVE_JEDULE
   jedule_sd_dump(tracefilename);
 #endif
   free(tracefilename);