1 | /* emx/gcc */
|
---|
2 | #ifndef _UTILS_H_
|
---|
3 | #define _UTILS_H_
|
---|
4 |
|
---|
5 | #ifdef TCPV40HDRS
|
---|
6 |
|
---|
7 | unsigned long _System lswap(unsigned long);
|
---|
8 | unsigned short _System bswap(unsigned short);
|
---|
9 | int _System rexec(char **, int, char *, char *, char *, int *);
|
---|
10 |
|
---|
11 | /* Definition for bswap */
|
---|
12 | #ifndef htonl
|
---|
13 | #include <machine/endian.h>
|
---|
14 | #endif
|
---|
15 |
|
---|
16 | #define ovbcopy(x,y,z) bcopy((x),(y),(z))
|
---|
17 | #define copyout(x,y,z) memcpy((y),(x),(z))
|
---|
18 | #ifndef XP_OS2_VACPP /* mozilla */
|
---|
19 | #define strcasecmp(x,y) strcmpi((x),(y))
|
---|
20 | #define strncasecmp(x,y,z) strnicmp(x,y,z)
|
---|
21 | #endif
|
---|
22 |
|
---|
23 | #ifndef MIN
|
---|
24 | #define MIN(a,b) (((a)<(b))?(a):(b))
|
---|
25 | #define imin(x,y) MIN((x),(y))
|
---|
26 | #define MAX(a,b) (((a)>(b))?(a):(b))
|
---|
27 | #endif
|
---|
28 | #ifndef min
|
---|
29 | #define min(a,b) (((a)<(b))?(a):(b))
|
---|
30 | #endif
|
---|
31 | /* timercmp */
|
---|
32 | #include <sys/time.h>
|
---|
33 |
|
---|
34 | #else
|
---|
35 | int _System rexec(char **, int, char *, char *, char *, int *);
|
---|
36 | #endif /*TCPV40HDRS*/
|
---|
37 |
|
---|
38 | #endif
|
---|