Rev 5123 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5123 | Rev 8501 | ||
---|---|---|---|
Line 7... | Line 7... | ||
7 | #if defined _KOLIBRI |
7 | #if defined _KOLIBRI |
8 | # define DIR_SEPARATOR ('/') |
8 | # define DIR_SEPARATOR ('/') |
9 | inline long GetProcessId() {return 0;} |
9 | inline long GetProcessId() {return 0;} |
10 | inline long DuplicateProcess() {return -1;} |
10 | inline long DuplicateProcess() {return -1;} |
11 | inline int random(int m) {return ((unsigned long)rand()) % m;} |
11 | inline int random(int m) {return ((unsigned long)rand()) % m;} |
12 | inline void randomize() {srand(__menuet__getsystemclock());} |
12 | inline void randomize() {srand(time(0));} |
13 | #elif defined __GNUC__ |
13 | #elif defined __GNUC__ |
14 | # include |
14 | # include |
15 | # define DIR_SEPARATOR ('/') |
15 | # define DIR_SEPARATOR ('/') |
16 | inline long GetProcessId() {return (long)getpid();} |
16 | inline long GetProcessId() {return (long)getpid();} |
17 | inline long DuplicateProcess() {return (long)fork();} |
17 | inline long DuplicateProcess() {return (long)fork();} |