1 #ifndef MANDOC_CONFIG_H
2 #define MANDOC_CONFIG_H
4 #if defined(__linux__) || defined(__MINT__)
5 # define _GNU_SOURCE /* strptime(), getsubopt() */
10 #define VERSION "1.12.3"
13 #define HAVE_GETSUBOPT
18 #define OSNAME "DragonFly 3.9"
20 #include <sys/types.h>
22 #if !defined(__BEGIN_DECLS)
24 # define __BEGIN_DECLS extern "C" {
26 # define __BEGIN_DECLS
29 #if !defined(__END_DECLS)
31 # define __END_DECLS }
38 # if defined(__APPLE__)
39 # define betoh64(x) OSSwapBigToHostInt64(x)
40 # define htobe64(x) OSSwapHostToBigInt64(x)
42 # define betoh64(x) BE_64(x)
43 # define htobe64(x) BE_64(x)
45 # define betoh64(x) be64toh(x)
50 extern size_t strlcat(char *, const char *, size_t);
53 extern size_t strlcpy(char *, const char *, size_t);
55 #ifndef HAVE_GETSUBOPT
56 extern int getsubopt(char **, char * const *, char **);
57 extern char *suboptarg;
60 extern char *fgetln(FILE *, size_t *);
63 #endif /* MANDOC_CONFIG_H */