summaryrefslogtreecommitdiff
path: root/libguile/random.c
diff options
context:
space:
mode:
authorMartin Grabmüller <mgrabmue@cs.tu-berlin.de>2001-06-26 17:53:09 +0000
committerMartin Grabmüller <mgrabmue@cs.tu-berlin.de>2001-06-26 17:53:09 +0000
commit82893676f43d32d217d264ad5bef50f0952b6460 (patch)
tree5aa0b8c88d64bd0e310749a2f049ed2b4d985401 /libguile/random.c
parentdd0e04edd65cdcb71517f1f079676cb04d3bafc4 (diff)
downloadguile-82893676f43d32d217d264ad5bef50f0952b6460.tar.gz
Make compilation under Windows easier.
Diffstat (limited to 'libguile/random.c')
-rw-r--r--libguile/random.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libguile/random.c b/libguile/random.c
index a55d68c31..f367332e5 100644
--- a/libguile/random.c
+++ b/libguile/random.c
@@ -91,6 +91,10 @@ scm_t_rng scm_the_rng;
#define A 2131995753UL
+#ifndef M_PI
+#define M_PI 3.14159265359
+#endif
+
#if SIZEOF_LONG > 4
#if SIZEOF_INT > 4
#define LONG32 unsigned short
@@ -100,8 +104,12 @@ scm_t_rng scm_the_rng;
#define LONG64 unsigned long
#else
#define LONG32 unsigned long
+#ifdef __MINGW32__
+#define LONG64 unsigned __int64
+#else
#define LONG64 unsigned long long
#endif
+#endif
#if SIZEOF_LONG > 4 || defined (HAVE_LONG_LONGS)