1 #ifndef MANDOC_CONFIG_H
2 #define MANDOC_CONFIG_H
4 #if defined(__linux__) || defined(__MINT__)
5 # define _GNU_SOURCE /* strptime(), getsubopt() */
11 #define HAVE_GETSUBOPT
16 #define VERSION "1.12.2"
17 #define OSNAME "DragonFly 3.5"
19 #include <sys/types.h>
21 #if !defined(__BEGIN_DECLS)
23 # define __BEGIN_DECLS extern "C" {
25 # define __BEGIN_DECLS
28 #if !defined(__END_DECLS)
30 # define __END_DECLS }
37 # if defined(__APPLE__)
38 # define betoh64(x) OSSwapBigToHostInt64(x)
39 # define htobe64(x) OSSwapHostToBigInt64(x)
41 # define betoh64(x) be64toh(x)
46 extern size_t strlcat(char *, const char *, size_t);
49 extern size_t strlcpy(char *, const char *, size_t);
51 #ifndef HAVE_GETSUBOPT
52 extern int getsubopt(char **, char * const *, char **);
53 extern char *suboptarg;
56 extern char *fgetln(FILE *, size_t *);
59 #endif /* MANDOC_CONFIG_H */