xbps/include/compat.h

25 lines
492 B
C
Raw Normal View History

#ifndef COMPAT_H
#define COMPAT_H
#include <sys/types.h>
#include <stdarg.h>
2012-06-18 13:22:19 +05:30
#include "xbps_api_impl.h"
#ifndef HAVE_STRLCAT
2012-06-18 13:22:19 +05:30
size_t HIDDEN strlcat(char *, const char *, size_t);
#endif
#ifndef HAVE_STRLCPY
2012-06-18 13:22:19 +05:30
size_t HIDDEN strlcpy(char *, const char *, size_t);
#endif
#ifndef HAVE_STRCASESTR
2012-06-18 13:22:19 +05:30
char HIDDEN *strcasestr(const char *, const char *);
#endif
#if defined(HAVE_VASPRINTF) && !defined(_GNU_SOURCE)
2012-06-18 13:22:19 +05:30
int HIDDEN vasprintf(char **, const char *, va_list);
#endif
#endif /* COMPAT_H */