1 /* $Header: /home/yav/xpx/RCS/headers.h,v 1.5 1996/03/05 13:09:23 yav Exp $
2  * xpx header files and macros for portability
3  * written by yav (UHD98984@pcvan.or.jp)
4  */
5 
6 #ifndef XPX_CONFIG_H
7 # include "config.h"
8 #endif
9 
10 #include <stdio.h>
11 
12 #ifdef HAVE_STDLIB_H
13 #include <stdlib.h>
14 #endif
15 
16 #ifdef HAVE_UNISTD_H
17 #include <unistd.h>
18 #endif
19 
20 #ifdef STDC_HEADERS
21 # include <string.h>
22 #else
23 # ifdef HAVE_STRINGS_H
24 #  include <strings.h>
25 # else
26 char *strchr (), *strrchr ();
27 # endif
28 # ifndef HAVE_STRCHR
29 #  define strchr index
30 #  define strrchr rindex
31 # endif
32 # ifndef HAVE_MEMCPY
33 #  define memcpy(d, s, n) bcopy ((s), (d), (n))
34 #  define memmove(d, s, n) bcopy ((s), (d), (n))
35 #  define memcmp(d, s, n) bcmp ((d), (s), (n))
36 # endif
37 #endif
38 
39 #ifndef HAVE_BZERO
40 # define bzero(dst,len) memset(dst,0,len)
41 #endif
42 
43 #ifdef HAVE_STDARG_H
44 # include <stdarg.h>
45 #else
46 # ifdef HAVE_VARARGS_H
47 #  include <varargs.h>
48 # endif
49 #endif
50 
51 #ifdef HAVE_MALLOC_H
52 # include <malloc.h>
53 #endif
54 
55 
56 #ifndef PATH_MAX
57 #define PATH_MAX 1024
58 #endif
59 
60 #ifndef MAXPATH
61 #ifdef MAXPATHLEN
62 #define MAXPATH MAXPATHLEN
63 #else
64 #define MAXPATH 1024
65 #endif
66 #endif
67 
68 /* End of file */
69