aboutsummaryrefslogtreecommitdiff
path: root/include/libc.h
diff options
context:
space:
mode:
authorwkj <devnull@localhost>2004-12-29 01:33:33 +0000
committerwkj <devnull@localhost>2004-12-29 01:33:33 +0000
commit623979856321b997ebd32386eb2fbb3302aa33ad (patch)
tree45b94a26baf8ccc33d3852303a0d0bad89bdae52 /include/libc.h
parent7ee1ac96893a000763b937ed03a51bba61acedbe (diff)
downloadplan9port-623979856321b997ebd32386eb2fbb3302aa33ad.tar.gz
plan9port-623979856321b997ebd32386eb2fbb3302aa33ad.tar.bz2
plan9port-623979856321b997ebd32386eb2fbb3302aa33ad.zip
Use #define to move rand and srand to p9rand and p9srand.
Diffstat (limited to 'include/libc.h')
-rw-r--r--include/libc.h10
1 files changed, 7 insertions, 3 deletions
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 <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);