2012-10-19 22:21:01 +00:00
|
|
|
#ifndef MANDOC_CONFIG_H
|
|
|
|
#define MANDOC_CONFIG_H
|
|
|
|
|
|
|
|
#if defined(__linux__) || defined(__MINT__)
|
2014-11-22 18:57:23 +00:00
|
|
|
# define _GNU_SOURCE /* getsubopt(), strcasestr(), strptime() */
|
2012-10-19 22:21:01 +00:00
|
|
|
#endif
|
|
|
|
|
2014-11-22 18:57:23 +00:00
|
|
|
#include <sys/types.h>
|
2012-10-19 22:21:01 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
|
2014-11-22 18:57:23 +00:00
|
|
|
#define VERSION "1.13.1"
|
2012-10-19 22:21:01 +00:00
|
|
|
#define HAVE_FGETLN
|
|
|
|
#define HAVE_GETSUBOPT
|
|
|
|
#define HAVE_MMAP
|
2014-11-22 18:57:23 +00:00
|
|
|
#define HAVE_STRCASESTR
|
|
|
|
#define HAVE_STRLCAT
|
2012-10-19 22:21:01 +00:00
|
|
|
#define HAVE_STRLCPY
|
2014-11-22 18:57:23 +00:00
|
|
|
#define HAVE_STRPTIME
|
|
|
|
#define HAVE_STRSEP
|
2012-10-18 09:55:16 +00:00
|
|
|
|
|
|
|
#if !defined(__BEGIN_DECLS)
|
|
|
|
# ifdef __cplusplus
|
|
|
|
# define __BEGIN_DECLS extern "C" {
|
|
|
|
# else
|
|
|
|
# define __BEGIN_DECLS
|
|
|
|
# endif
|
|
|
|
#endif
|
|
|
|
#if !defined(__END_DECLS)
|
|
|
|
# ifdef __cplusplus
|
|
|
|
# define __END_DECLS }
|
|
|
|
# else
|
|
|
|
# define __END_DECLS
|
|
|
|
# endif
|
|
|
|
#endif
|
|
|
|
|
2014-11-22 18:08:25 +00:00
|
|
|
#ifndef HAVE_FGETLN
|
|
|
|
extern char *fgetln(FILE *, size_t *);
|
|
|
|
#endif
|
|
|
|
#ifndef HAVE_GETSUBOPT
|
|
|
|
extern int getsubopt(char **, char * const *, char **);
|
|
|
|
extern char *suboptarg;
|
|
|
|
#endif
|
|
|
|
#ifndef HAVE_REALLOCARRAY
|
|
|
|
extern void *reallocarray(void *, size_t, size_t);
|
|
|
|
#endif
|
|
|
|
#ifndef HAVE_SQLITE3_ERRSTR
|
|
|
|
extern const char *sqlite3_errstr(int);
|
|
|
|
#endif
|
|
|
|
#ifndef HAVE_STRCASESTR
|
|
|
|
extern char *strcasestr(const char *, const char *);
|
2012-10-18 09:55:16 +00:00
|
|
|
#endif
|
|
|
|
#ifndef HAVE_STRLCAT
|
|
|
|
extern size_t strlcat(char *, const char *, size_t);
|
|
|
|
#endif
|
|
|
|
#ifndef HAVE_STRLCPY
|
|
|
|
extern size_t strlcpy(char *, const char *, size_t);
|
|
|
|
#endif
|
2014-11-22 18:08:25 +00:00
|
|
|
#ifndef HAVE_STRSEP
|
|
|
|
extern char *strsep(char **, const char *);
|
2012-10-18 09:55:16 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* MANDOC_CONFIG_H */
|