Import mdocml-1.12.3
[dragonfly.git] / contrib / mdocml / config.h.post
CommitLineData
80387638
SW
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
f88b6c16
FF
18#ifndef HAVE_BETOH64
19# if defined(__APPLE__)
20# define betoh64(x) OSSwapBigToHostInt64(x)
21# define htobe64(x) OSSwapHostToBigInt64(x)
7888c61d
FF
22# elif defined(__sun)
23# define betoh64(x) BE_64(x)
24# define htobe64(x) BE_64(x)
f88b6c16
FF
25# else
26# define betoh64(x) be64toh(x)
27# endif
36342e81
SW
28#endif
29
80387638
SW
30#ifndef HAVE_STRLCAT
31extern size_t strlcat(char *, const char *, size_t);
32#endif
33#ifndef HAVE_STRLCPY
34extern size_t strlcpy(char *, const char *, size_t);
35#endif
36342e81
SW
36#ifndef HAVE_GETSUBOPT
37extern int getsubopt(char **, char * const *, char **);
38extern char *suboptarg;
39#endif
40#ifndef HAVE_FGETLN
41extern char *fgetln(FILE *, size_t *);
42#endif
80387638
SW
43
44#endif /* MANDOC_CONFIG_H */