Просмотр исходного кода

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

Samuel Thibault лет назад: 7
Родитель
Сommit
8553dab908
1 измененных файлов с 2 добавлено и 1 удалено
  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 */