There is no random() on win32, use rand() instead
---
 testsuite/arith.c   |    4 ++++
 testsuite/common.c  |    3 +++
 testsuite/unpack.c  |    4 ++++
 testsuite/wavelet.c |    4 ++++
 4 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/testsuite/arith.c b/testsuite/arith.c
index a225448..fd267fd 100644
--- a/testsuite/arith.c
+++ b/testsuite/arith.c
@@ -7,6 +7,10 @@
 #include <schroedinger/schro.h>
 #include <schroedinger/schroarith.h>
 
+#ifdef _WIN32
+#define random() rand()
+#endif
+
 #define BUFFER_SIZE 10000
 
 int debug=1;
diff --git a/testsuite/common.c b/testsuite/common.c
index fa5b282..b4d2378 100644
--- a/testsuite/common.c
+++ b/testsuite/common.c
@@ -19,6 +19,9 @@
 
 #include "common.h"
 
+#ifdef _WIN32
+#define random() rand()
+#endif
 
 double sgn(double x)
 {
diff --git a/testsuite/unpack.c b/testsuite/unpack.c
index ef64918..a7e2cf7 100644
--- a/testsuite/unpack.c
+++ b/testsuite/unpack.c
@@ -7,6 +7,10 @@
 #include <schroedinger/schro.h>
 #include <schroedinger/schrounpack.h>
 
+#ifdef _WIN32
+#define random() rand()
+#endif
+
 int fail;
 
 void
diff --git a/testsuite/wavelet.c b/testsuite/wavelet.c
index 7913def..8278add 100644
--- a/testsuite/wavelet.c
+++ b/testsuite/wavelet.c
@@ -12,6 +12,10 @@
 #include <string.h>
 #include <stdlib.h>
 
+#ifdef _WIN32
+#define random() rand()
+#endif
+
 int16_t tmp[100];
 int16_t tmp2[100];
 int16_t *frame_data;
-- 
1.5.4.3


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Schrodinger-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/schrodinger-devel

Reply via email to