xref: /netbsd-src/external/bsd/mdocml/include/config.h (revision a24efa7dea9f1f56c3bdb15a927d3516792ace1c)
1 #ifndef MANDOC_CONFIG_H
2 #define MANDOC_CONFIG_H
3 
4 #if defined(__linux__) || defined(__MINT__)
5 #define _GNU_SOURCE	/* See test-*.c what needs this. */
6 #endif
7 
8 #include <sys/types.h>
9 
10 #define HAVE_DIRENT_NAMLEN 1
11 #define HAVE_FGETLN 1
12 #define HAVE_FTS 1
13 #define HAVE_GETSUBOPT 0
14 #define HAVE_MMAP 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
20 #define HAVE_STRSEP 1
21 #define HAVE_STRTONUM 0
22 #define HAVE_WCHAR 1
23 #if 0
24 #define HAVE_SQLITE3 1
25 #define HAVE_SQLITE3_ERRSTR 1
26 #endif
27 #define HAVE_OHASH 0
28 #define HAVE_MANPATH 0
29 
30 #define BINM_APROPOS "apropos"
31 #define BINM_MAN "man"
32 #define BINM_WHATIS "whatis"
33 #define BINM_MAKEWHATIS "makewhatis"
34 
35 #if !defined(__BEGIN_DECLS)
36 #  ifdef __cplusplus
37 #  define	__BEGIN_DECLS		extern "C" {
38 #  else
39 #  define	__BEGIN_DECLS
40 #  endif
41 #endif
42 #if !defined(__END_DECLS)
43 #  ifdef __cplusplus
44 #  define	__END_DECLS		}
45 #  else
46 #  define	__END_DECLS
47 #  endif
48 #endif
49 
50 extern	int	  getsubopt(char **, char * const *, char **);
51 extern	void	 *reallocarray(void *, size_t, size_t);
52 extern	long long strtonum(const char *, long long, long long, const char **);
53 
54 #endif /* MANDOC_CONFIG_H */
55