From 623979856321b997ebd32386eb2fbb3302aa33ad Mon Sep 17 00:00:00 2001 From: wkj Date: Wed, 29 Dec 2004 01:33:33 +0000 Subject: Use #define to move rand and srand to p9rand and p9srand. --- include/libc.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/libc.h b/include/libc.h index ad5ecee0..20b38667 100644 --- a/include/libc.h +++ b/include/libc.h @@ -234,11 +234,15 @@ extern int quoterunestrfmt(Fmt*); extern int needsrcquote(int); /* - * random number (in ) - * + * random number (also in ) + */ +#ifndef NOPLAN9DEFINES +#define rand p9rand +#define srand p9srand +#endif + extern void srand(long); extern int rand(void); - */ extern int nrand(int); extern long lrand(void); extern long lnrand(long); -- cgit v1.2.3