source: trunk/src/emx/include/utils.h@ 354

Last change on this file since 354 was 354, checked in by bird, 22 years ago

#434: no function redefinitions. TCPCALL not _System.

  • Property cvs2svn:cvs-rev set to 1.3
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 1.1 KB
Line 
1/* emx/gcc */
2#ifndef _UTILS_H_
3#define _UTILS_H_
4
5#ifndef TCPCALL
6#define TCPCALL _System
7#endif
8
9#ifdef TCPV40HDRS
10
11unsigned long TCPCALL lswap(unsigned long);
12unsigned short TCPCALL bswap(unsigned short);
13int TCPCALL rexec(char **, int, char *, char *, char *, int *);
14
15/* Definition for bswap */
16#ifndef htonl
17#include <machine/endian.h>
18#endif
19
20#define ovbcopy(x,y,z) bcopy((x),(y),(z))
21#define copyout(x,y,z) memcpy((y),(x),(z))
22#ifndef XP_OS2_VACPP /* mozilla */
23/* We've got the real thing now. (aliased at least)
24#define strcasecmp(x,y) strcmpi((x),(y))
25#define strncasecmp(x,y,z) strnicmp(x,y,z)
26*/
27#endif
28int strcasecmp (__const__ char *, __const__ char *);
29int strncasecmp (__const__ char *, __const__ char *, size_t);
30
31#ifndef MIN
32#define MIN(a,b) (((a)<(b))?(a):(b))
33#define imin(x,y) MIN((x),(y))
34#define MAX(a,b) (((a)>(b))?(a):(b))
35#endif
36#ifndef min
37#define min(a,b) (((a)<(b))?(a):(b))
38#endif
39/* timercmp */
40#include <sys/time.h>
41
42#else
43int TCPCALL rexec(char **, int, char *, char *, char *, int *);
44#endif /*TCPV40HDRS*/
45
46#endif
Note: See TracBrowser for help on using the repository browser.