Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Drand48 does not exist on win32
[simgrid.git] / src / instr / instr_private.h
index ac2949d..4f57282 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"