1 #ifndef MANDOC_CONFIG_H
2 #define MANDOC_CONFIG_H
4 #if defined(__linux__) || defined(__MINT__)
5 # define _GNU_SOURCE /* getsubopt(), strcasestr(), strptime() */
11 #define VERSION "1.13.1"
13 #define HAVE_GETSUBOPT
15 #define HAVE_STRCASESTR
21 #define OSNAME "DragonFly 5.1"
23 #if !defined(__BEGIN_DECLS)
25 # define __BEGIN_DECLS extern "C" {
27 # define __BEGIN_DECLS
30 #if !defined(__END_DECLS)
32 # define __END_DECLS }
39 extern char *fgetln(FILE *, size_t *);
41 #ifndef HAVE_GETSUBOPT
42 extern int getsubopt(char **, char * const *, char **);
43 extern char *suboptarg
;
45 #ifndef HAVE_REALLOCARRAY
46 extern void *reallocarray(void *, size_t, size_t);
48 #ifndef HAVE_SQLITE3_ERRSTR
49 extern const char *sqlite3_errstr(int);
51 #ifndef HAVE_STRCASESTR
52 extern char *strcasestr(const char *, const char *);
55 extern size_t strlcat(char *, const char *, size_t);
58 extern size_t strlcpy(char *, const char *, size_t);
61 extern char *strsep(char **, const char *);
64 #endif /* MANDOC_CONFIG_H */