195c635efSGarrett D'Amore #ifndef MANDOC_CONFIG_H 295c635efSGarrett D'Amore #define MANDOC_CONFIG_H 395c635efSGarrett D'Amore 495c635efSGarrett D'Amore #if defined(__linux__) || defined(__MINT__) 595c635efSGarrett D'Amore # define _GNU_SOURCE /* strptime(), getsubopt() */ 695c635efSGarrett D'Amore #endif 795c635efSGarrett D'Amore 895c635efSGarrett D'Amore #include <stdio.h> 995c635efSGarrett D'Amore 10*698f87a4SGarrett D'Amore #define VERSION "1.12.3" 1195c635efSGarrett D'Amore #define HAVE_STRPTIME 1295c635efSGarrett D'Amore #define HAVE_GETSUBOPT 1395c635efSGarrett D'Amore #define HAVE_STRLCAT 1495c635efSGarrett D'Amore #define HAVE_STRLCPY 15*698f87a4SGarrett D'Amore #define HAVE_MMAP 1695c635efSGarrett D'Amore 1795c635efSGarrett D'Amore #include <sys/types.h> 1895c635efSGarrett D'Amore 1995c635efSGarrett D'Amore #if !defined(__BEGIN_DECLS) 2095c635efSGarrett D'Amore # ifdef __cplusplus 2195c635efSGarrett D'Amore # define __BEGIN_DECLS extern "C" { 2295c635efSGarrett D'Amore # else 2395c635efSGarrett D'Amore # define __BEGIN_DECLS 2495c635efSGarrett D'Amore # endif 2595c635efSGarrett D'Amore #endif 2695c635efSGarrett D'Amore #if !defined(__END_DECLS) 2795c635efSGarrett D'Amore # ifdef __cplusplus 2895c635efSGarrett D'Amore # define __END_DECLS } 2995c635efSGarrett D'Amore # else 3095c635efSGarrett D'Amore # define __END_DECLS 3195c635efSGarrett D'Amore # endif 3295c635efSGarrett D'Amore #endif 3395c635efSGarrett D'Amore 34*698f87a4SGarrett D'Amore #ifndef HAVE_BETOH64 3595c635efSGarrett D'Amore # if defined(__APPLE__) 3695c635efSGarrett D'Amore # define betoh64(x) OSSwapBigToHostInt64(x) 37*698f87a4SGarrett D'Amore # define htobe64(x) OSSwapHostToBigInt64(x) 38*698f87a4SGarrett D'Amore # elif defined(__sun) 39*698f87a4SGarrett D'Amore # define betoh64(x) BE_64(x) 40*698f87a4SGarrett D'Amore # define htobe64(x) BE_64(x) 41*698f87a4SGarrett D'Amore # else 4295c635efSGarrett D'Amore # define betoh64(x) be64toh(x) 4395c635efSGarrett D'Amore # endif 44*698f87a4SGarrett D'Amore #endif 4595c635efSGarrett D'Amore 4695c635efSGarrett D'Amore #ifndef HAVE_STRLCAT 4795c635efSGarrett D'Amore extern size_t strlcat(char *, const char *, size_t); 4895c635efSGarrett D'Amore #endif 4995c635efSGarrett D'Amore #ifndef HAVE_STRLCPY 5095c635efSGarrett D'Amore extern size_t strlcpy(char *, const char *, size_t); 5195c635efSGarrett D'Amore #endif 5295c635efSGarrett D'Amore #ifndef HAVE_GETSUBOPT 5395c635efSGarrett D'Amore extern int getsubopt(char **, char * const *, char **); 5495c635efSGarrett D'Amore extern char *suboptarg; 5595c635efSGarrett D'Amore #endif 5695c635efSGarrett D'Amore #ifndef HAVE_FGETLN 5795c635efSGarrett D'Amore extern char *fgetln(FILE *, size_t *); 5895c635efSGarrett D'Amore #endif 5995c635efSGarrett D'Amore 6095c635efSGarrett D'Amore #endif /* MANDOC_CONFIG_H */ 61