2011-09-26 18:19:29 +02:00
|
|
|
#include <sys/types.h>
|
|
|
|
|
|
|
|
#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
|
|
|
|
|
2013-10-08 18:05:29 +02:00
|
|
|
#if defined(__APPLE__)
|
|
|
|
# define htobe32(x) OSSwapHostToBigInt32(x)
|
|
|
|
# define betoh32(x) OSSwapBigToHostInt32(x)
|
|
|
|
# define htobe64(x) OSSwapHostToBigInt64(x)
|
|
|
|
# define betoh64(x) OSSwapBigToHostInt64(x)
|
|
|
|
#elif defined(__linux__)
|
|
|
|
# define betoh32(x) be32toh(x)
|
|
|
|
# define betoh64(x) be64toh(x)
|
|
|
|
#endif
|
|
|
|
|
2011-09-26 18:19:29 +02:00
|
|
|
#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
|
2013-10-08 18:05:29 +02:00
|
|
|
#ifndef HAVE_GETSUBOPT
|
|
|
|
extern int getsubopt(char **, char * const *, char **);
|
|
|
|
extern char *suboptarg;
|
|
|
|
#endif
|
|
|
|
#ifndef HAVE_FGETLN
|
|
|
|
extern char *fgetln(FILE *, size_t *);
|
|
|
|
#endif
|
2011-09-26 18:19:29 +02:00
|
|
|
|
|
|
|
#endif /* MANDOC_CONFIG_H */
|