1 #ifndef MANDOC_CONFIG_H
2 #define MANDOC_CONFIG_H
4 #if defined(__linux__) || defined(__MINT__)
5 #define _GNU_SOURCE /* See test-*.c what needs this. */
10 #define HAVE_DIRENT_NAMLEN 1
13 #define HAVE_GETSUBOPT 1
15 #define HAVE_REALLOCARRAY 0
16 #define HAVE_STRCASESTR 1
17 #define HAVE_STRLCAT 1
18 #define HAVE_STRLCPY 1
19 #define HAVE_STRPTIME 1
21 #define HAVE_STRTONUM 1
23 #define HAVE_SQLITE3 1
24 #define HAVE_SQLITE3_ERRSTR 0
26 #define HAVE_MANPATH 1
28 #define BINM_APROPOS "apropos"
29 #define BINM_MAN "man"
30 #define BINM_WHATIS "whatis"
31 #define BINM_MAKEWHATIS "makewhatis"
33 #if !defined(__BEGIN_DECLS)
35 # define __BEGIN_DECLS extern "C" {
37 # define __BEGIN_DECLS
40 #if !defined(__END_DECLS)
42 # define __END_DECLS }
48 extern void *reallocarray(void *, size_t, size_t);
49 extern const char *sqlite3_errstr(int);
51 #endif /* MANDOC_CONFIG_H */