Pārlūkot izejas kodu

Fix Windows build

Cyril Roelandt 13 gadi atpakaļ
vecāks
revīzija
19c168ed6a
1 mainītis faili ar 9 papildinājumiem un 0 dzēšanām
  1. 9 0
      src/sched_policies/parallel_heft.c

+ 9 - 0
src/sched_policies/parallel_heft.c

@@ -1,5 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
+ * Copyright (C) 2012 inria
  * Copyright (C) 2010-2012  Université de Bordeaux 1
  * Copyright (C) 2011  Télécom-SudParis
  *
@@ -25,6 +26,14 @@
 #include <common/barrier.h>
 #include <sched_policies/detect_combined_workers.h>
 
+#ifndef DBL_MIN
+#define DBL_MIN __DBL_MIN__
+#endif
+
+#ifndef DBL_MAX
+#define DBL_MAX __DBL_MAX__
+#endif
+
 static pthread_mutex_t big_lock;
 
 static unsigned nworkers, ncombinedworkers;