/* emx/gcc */ #ifndef _UTILS_H_ #define _UTILS_H_ #ifndef TCPCALL #define TCPCALL _System #endif #ifdef TCPV40HDRS unsigned long TCPCALL lswap(unsigned long); unsigned short TCPCALL bswap(unsigned short); int TCPCALL rexec(char **, int, char *, char *, char *, int *); /* Definition for bswap */ #ifndef htonl #include #endif #define ovbcopy(x,y,z) bcopy((x),(y),(z)) #define copyout(x,y,z) memcpy((y),(x),(z)) #ifndef XP_OS2_VACPP /* mozilla */ /* We've got the real thing now. (aliased at least) #define strcasecmp(x,y) strcmpi((x),(y)) #define strncasecmp(x,y,z) strnicmp(x,y,z) */ #endif int strcasecmp (__const__ char *, __const__ char *); int strncasecmp (__const__ char *, __const__ char *, size_t); #ifndef MIN #define MIN(a,b) (((a)<(b))?(a):(b)) #define imin(x,y) MIN((x),(y)) #define MAX(a,b) (((a)>(b))?(a):(b)) #endif #ifndef min #define min(a,b) (((a)<(b))?(a):(b)) #endif /* timercmp */ #include #else int TCPCALL rexec(char **, int, char *, char *, char *, int *); #endif /*TCPV40HDRS*/ #endif