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 >
Internet Message Format  |  1991-04-21  |  1KB

  1. From: shaunc@gold.gvg.tek.com (Shaun Case)
  2. Newsgroups: alt.sources
  3. Subject: Change to Townmaze for Borland C++ 2.0 (1/2)
  4. Message-ID: <2200@gold.gvg.tek.com>
  5. Date: 19 Apr 91 22:39:00 GMT
  6.  
  7.  
  8. Change to townmaze.h for Borland C++ 2.0 compilation
  9.  
  10. My apologies for not using a diff program.
  11.  
  12.  
  13. // Shaun //
  14.  
  15. Btw, loved your program, Kent.
  16.  
  17. -------------------------------
  18. Key:
  19.  
  20. : old
  21. + new
  22.  
  23.  
  24. --- cut here --- cut here ---
  25. :** Define RAND48 in the makefile  to use the srand48() and lrand48()
  26. :** functions instead of the srandom() and random() functions.
  27. :*/
  28. :
  29. :#define PROGRESS 0
  30. :#define SHOWSTART 0
  31. :#define SHOWEND 0
  32. :#define HEADER 1
  33. :
  34. :#ifdef RAND48
  35. :#include <math.h>
  36. :#define RANDOM lrand48
  37. :#define SEEDRANDOM srand48
  38. :#else
  39. :#define RANDOM random
  40. :#define SEEDRANDOM srandom
  41. :#endif
  42. +
  43. +#ifdef __BORLANDC__
  44. +#include <stdlib.h>
  45. +#undef  RANDOM
  46. +#define RANDOM rand
  47. +#undef  SEEDRANDOM
  48. +#define SEEDRANDOM srand
  49. +#endif
  50. :
  51. :/*
  52. :** Control for defintion (allocation)  of globals in main only,
  53. :** declaration only elsewhere.
  54. :*/
  55. --- cut here --- cut here ---
  56.