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 /* local DragonFly modifications */
17 #define VERSION "1.12.1"
18 #define OSNAME "DragonFly 3.5"
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 }
37 #if defined(__APPLE__)
38 # define htobe32(x) OSSwapHostToBigInt32(x)
39 # define betoh32(x) OSSwapBigToHostInt32(x)
40 # define htobe64(x) OSSwapHostToBigInt64(x)
41 # define betoh64(x) OSSwapBigToHostInt64(x)
42 #elif defined(__linux__)
43 # define betoh32(x) be32toh(x)
44 # define betoh64(x) be64toh(x)
48 extern size_t strlcat(char *, const char *, size_t);
51 extern size_t strlcpy(char *, const char *, size_t);
53 #ifndef HAVE_GETSUBOPT
54 extern int getsubopt(char **, char * const *, char **);
55 extern char *suboptarg;
58 extern char *fgetln(FILE *, size_t *);
61 #endif /* MANDOC_CONFIG_H */