소스 검색

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

Samuel Thibault 7 년 전
부모
커밋
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 */