X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/34f6f432728b9a9882a6801da79aafa751553666..0d191a4d728a2cf18bb1cde0c9cfd84ee65a97ce:/src/instr/instr_private.h diff --git a/src/instr/instr_private.h b/src/instr/instr_private.h index ac2949dc05..842dc7fd2a 100644 --- a/src/instr/instr_private.h +++ b/src/instr/instr_private.h @@ -11,6 +11,11 @@ #ifdef HAVE_TRACING +/* Need to define function drand48 for Windows */ +#ifdef _WIN32 +# define drand48() (rand()/(RAND_MAX + 1.0)) +#endif + #define INSTR_DEFAULT_STR_SIZE 500 #include "instr/instr.h"