xref: /dragonfly/usr.bin/mandoc/config.h (revision ed36d35d)
1 #ifndef	MANDOC_CONFIG_H
2 #define	MANDOC_CONFIG_H
3 
4 #if defined(__linux__) || defined(__MINT__)
5 # define _GNU_SOURCE /* getsubopt(), strcasestr(), strptime() */
6 #endif
7 
8 #include <sys/types.h>
9 #include <stdio.h>
10 
11 #define VERSION "1.13.1"
12 #define HAVE_FGETLN
13 #define HAVE_GETSUBOPT
14 #define HAVE_MMAP
15 #define HAVE_STRCASESTR
16 #define HAVE_STRLCAT
17 #define HAVE_STRLCPY
18 #define HAVE_STRPTIME
19 #define HAVE_STRSEP
20 
21 #define OSNAME "DragonFly 5.3"
22 
23 #if !defined(__BEGIN_DECLS)
24 #  ifdef __cplusplus
25 #  define	__BEGIN_DECLS		extern "C" {
26 #  else
27 #  define	__BEGIN_DECLS
28 #  endif
29 #endif
30 #if !defined(__END_DECLS)
31 #  ifdef __cplusplus
32 #  define	__END_DECLS		}
33 #  else
34 #  define	__END_DECLS
35 #  endif
36 #endif
37 
38 #ifndef HAVE_FGETLN
39 extern	char	 *fgetln(FILE *, size_t *);
40 #endif
41 #ifndef HAVE_GETSUBOPT
42 extern	int	  getsubopt(char **, char * const *, char **);
43 extern	char	 *suboptarg;
44 #endif
45 #ifndef HAVE_REALLOCARRAY
46 extern	void	 *reallocarray(void *, size_t, size_t);
47 #endif
48 #ifndef HAVE_SQLITE3_ERRSTR
49 extern	const char *sqlite3_errstr(int);
50 #endif
51 #ifndef HAVE_STRCASESTR
52 extern	char	 *strcasestr(const char *, const char *);
53 #endif
54 #ifndef HAVE_STRLCAT
55 extern	size_t	  strlcat(char *, const char *, size_t);
56 #endif
57 #ifndef HAVE_STRLCPY
58 extern	size_t	  strlcpy(char *, const char *, size_t);
59 #endif
60 #ifndef HAVE_STRSEP
61 extern	char	 *strsep(char **, const char *);
62 #endif
63 
64 #endif /* MANDOC_CONFIG_H */
65