xref: /dragonfly/usr.bin/mandoc/config.h (revision 00ffa116)
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_REALLOCARRAY
16 #define HAVE_STRCASESTR
17 #define HAVE_STRLCAT
18 #define HAVE_STRLCPY
19 #define HAVE_STRPTIME
20 #define HAVE_STRSEP
21 
22 #define OSNAME "DragonFly 5.5"
23 
24 #if !defined(__BEGIN_DECLS)
25 #  ifdef __cplusplus
26 #  define	__BEGIN_DECLS		extern "C" {
27 #  else
28 #  define	__BEGIN_DECLS
29 #  endif
30 #endif
31 #if !defined(__END_DECLS)
32 #  ifdef __cplusplus
33 #  define	__END_DECLS		}
34 #  else
35 #  define	__END_DECLS
36 #  endif
37 #endif
38 
39 #ifndef HAVE_FGETLN
40 extern	char	 *fgetln(FILE *, size_t *);
41 #endif
42 #ifndef HAVE_GETSUBOPT
43 extern	int	  getsubopt(char **, char * const *, char **);
44 extern	char	 *suboptarg;
45 #endif
46 #ifndef HAVE_REALLOCARRAY
47 extern	void	 *reallocarray(void *, size_t, size_t);
48 #endif
49 #ifndef HAVE_SQLITE3_ERRSTR
50 extern	const char *sqlite3_errstr(int);
51 #endif
52 #ifndef HAVE_STRCASESTR
53 extern	char	 *strcasestr(const char *, const char *);
54 #endif
55 #ifndef HAVE_STRLCAT
56 extern	size_t	  strlcat(char *, const char *, size_t);
57 #endif
58 #ifndef HAVE_STRLCPY
59 extern	size_t	  strlcpy(char *, const char *, size_t);
60 #endif
61 #ifndef HAVE_STRSEP
62 extern	char	 *strsep(char **, const char *);
63 #endif
64 
65 #endif /* MANDOC_CONFIG_H */
66