From: Navarrop Date: Wed, 29 Jun 2011 12:30:41 +0000 (+0200) Subject: Drand48 does not exist on win32 X-Git-Tag: v3_6_2~203^2~14 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/b987f4a4f0426df6cbe419e90cf67e0aaf1d0aef Drand48 does not exist on win32 --- diff --git a/src/instr/instr_private.h b/src/instr/instr_private.h index ac2949dc05..4f57282d5b 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()/(float)(RAND_MAX); +#endif + #define INSTR_DEFAULT_STR_SIZE 500 #include "instr/instr.h"