Change to Townmaze for Borland C++ 2.0 (1/2)
Shaun Case
shaunc at gold.gvg.tek.com
Sat Apr 20 08:39:00 AEST 1991
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 ---
More information about the Alt.sources
mailing list