aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2012-02-05 04:33:05 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2012-02-05 04:33:05 +0000
commit5a42d2eb913724690db6a99d3cbf5c073376751f (patch)
tree3e76415aa543de6ed947d8870f8a45bde51e1d26
parent78935e0f0c5a728d85cf5cdd47c12cf5019bea75 (diff)
add fake srand48() and drand48() on Windows/MinGW since it doesn't have them
svn path=/trunk/externals/chaos/; revision=15950
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index c7f1c3e..5421fbe 100644
--- a/Makefile
+++ b/Makefile
@@ -32,8 +32,8 @@ EXTRA_DIST = chaos.ncb chaos.sln chaos.suo chaos.vcproj Makefile.nt
#
#------------------------------------------------------------------------------#
-ALL_CFLAGS = -I"$(PD_INCLUDE)"
-ALL_LDFLAGS =
+ALL_CFLAGS = -I"$(PD_INCLUDE)" -D'srand48(n)=srand((n))' -D'drand48()=((double)rand()/RAND_MAX)'
+ALL_LDFLAGS =
SHARED_LDFLAGS =
ALL_LIBS =