Annotation of mandoc/config.h.post, Revision 1.6.2.4
1.1 kristaps 1: #include <sys/types.h>
2:
3: #if !defined(__BEGIN_DECLS)
4: # ifdef __cplusplus
5: # define __BEGIN_DECLS extern "C" {
6: # else
7: # define __BEGIN_DECLS
8: # endif
9: #endif
10: #if !defined(__END_DECLS)
11: # ifdef __cplusplus
12: # define __END_DECLS }
13: # else
14: # define __END_DECLS
15: # endif
16: #endif
17:
1.6.2.1 schwarze 18: #ifndef HAVE_BETOH64
1.6.2.2 schwarze 19: # if defined(__APPLE__)
20: # define betoh64(x) OSSwapBigToHostInt64(x)
21: # define htobe64(x) OSSwapHostToBigInt64(x)
1.6.2.3 schwarze 22: # elif defined(__sun)
23: # define betoh64(x) BE_64(x)
24: # define htobe64(x) BE_64(x)
1.6.2.2 schwarze 25: # else
26: # define betoh64(x) be64toh(x)
27: # endif
1.6.2.1 schwarze 28: #endif
1.6.2.2 schwarze 29:
1.6.2.4 ! schwarze 30: #ifndef HAVE_STRCASESTR
! 31: extern char *strcasestr(const char *, const char *);
! 32: #endif
1.1 kristaps 33: #ifndef HAVE_STRLCAT
34: extern size_t strlcat(char *, const char *, size_t);
35: #endif
36: #ifndef HAVE_STRLCPY
37: extern size_t strlcpy(char *, const char *, size_t);
1.6.2.4 ! schwarze 38: #endif
! 39: #ifndef HAVE_STRSEP
! 40: extern char *strsep(char **, const char *);
1.1 kristaps 41: #endif
1.2 kristaps 42: #ifndef HAVE_GETSUBOPT
43: extern int getsubopt(char **, char * const *, char **);
44: extern char *suboptarg;
45: #endif
1.4 kristaps 46: #ifndef HAVE_FGETLN
47: extern char *fgetln(FILE *, size_t *);
48: #endif
1.1 kristaps 49:
50: #endif /* MANDOC_CONFIG_H */
CVSweb