-/* $NetBSD: header.h,v 1.13 2001/02/05 00:57:33 christos Exp $ */
+/* $NetBSD: header.h,v 1.15 2005/02/03 02:23:02 perry Exp $ */
/* header.h Larn is copyrighted 1986 by Noah Morgan. */
#define DEMONLORD 57
#define DEMONPRINCE 64
+#ifndef NULL
#define NULL 0
+#endif
#define BUFBIG 4096 /* size of the output buffer */
#define MAXIBUF 4096 /* size of the input buffer */
#define LOGNAMESIZE 40 /* max size of the players name */
#define lprc(ch) ((lpnt>=lpend)?(*lpnt++ =(ch), lflush()):(*lpnt++ =(ch)))
/* macro to seed the random number generator */
-#define srand(x) (randx=x)
+#define seedrand(x) (randx=x)
#ifdef MACRORND
/* macros to generate random numbers 1<=rnd(N)<=N 0<=rund(N)<=N-1 */
#define rnd(x) ((((randx=randx*1103515245+12345)>>7)%(x))+1)