Use #define to move rand and srand to p9rand and p9srand.
This commit is contained in:
parent
7ee1ac9689
commit
6239798563
1 changed files with 7 additions and 3 deletions
|
|
@ -234,11 +234,15 @@ extern int quoterunestrfmt(Fmt*);
|
|||
extern int needsrcquote(int);
|
||||
|
||||
/*
|
||||
* random number (in <stdlib.h>)
|
||||
*
|
||||
* random number (also in <stdlib.h>)
|
||||
*/
|
||||
#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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue