home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Source Code 1992 March
/
Source_Code_CD-ROM_Walnut_Creek_March_1992.iso
/
usenet
/
altsrcs
/
3
/
3228
< prev
next >
Wrap
Internet Message Format
|
1991-04-21
|
1KB
From: shaunc@gold.gvg.tek.com (Shaun Case)
Newsgroups: alt.sources
Subject: Change to Townmaze for Borland C++ 2.0 (1/2)
Message-ID: <2200@gold.gvg.tek.com>
Date: 19 Apr 91 22:39:00 GMT
Change to townmaze.h for Borland C++ 2.0 compilation
My apologies for not using a diff program.
// Shaun //
Btw, loved your program, Kent.
-------------------------------
Key:
: old
+ new
--- cut here --- cut here ---
:** Define RAND48 in the makefile to use the srand48() and lrand48()
:** functions instead of the srandom() and random() functions.
:*/
:
:#define PROGRESS 0
:#define SHOWSTART 0
:#define SHOWEND 0
:#define HEADER 1
:
:#ifdef RAND48
:#include <math.h>
:#define RANDOM lrand48
:#define SEEDRANDOM srand48
:#else
:#define RANDOM random
:#define SEEDRANDOM srandom
:#endif
+
+#ifdef __BORLANDC__
+#include <stdlib.h>
+#undef RANDOM
+#define RANDOM rand
+#undef SEEDRANDOM
+#define SEEDRANDOM srand
+#endif
:
:/*
:** Control for defintion (allocation) of globals in main only,
:** declaration only elsewhere.
:*/
--- cut here --- cut here ---