Bläddra i källkod

Fix build in some configurations where limits.h doesn't get included already

Samuel Thibault 7 år sedan
förälder
incheckning
8553dab908
1 ändrade filer med 2 tillägg och 1 borttagningar
  1. 2 1
      tools/starpu_replay_sched.c

+ 2 - 1
tools/starpu_replay_sched.c

@@ -27,6 +27,7 @@
 #include <common/uthash.h>
 #include <common/list.h>
 #include <common/utils.h>
+#include <limits.h>
 
 /*
  sched.rec files look like this:
@@ -49,7 +50,7 @@
 #if 0
 #define debug(fmt, ...) fprintf(stderr, fmt, ##__VA_ARGS__)
 #else
-#define debug(fmt, ...) 0
+#define debug(fmt, ...) (void)0
 #endif
 
 static unsigned long submitorder; /* Also use as prefetchtag */