Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Drand48 does not exist on win32
authorNavarrop <Pierre.Navarro@imag.fr>
Wed, 29 Jun 2011 12:30:41 +0000 (14:30 +0200)
committerNavarrop <Pierre.Navarro@imag.fr>
Wed, 29 Jun 2011 12:30:41 +0000 (14:30 +0200)
src/instr/instr_private.h

index ac2949dc05124cb07011c883cb74073041c5e9fb..4f57282d5b4ef08b8fbdb6ff4148d5be67f32051 100644 (file)
 
 #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"