server/src/common/util/bsdstring.h

24 lines
443 B
C
Raw Normal View History

#ifndef UTIL_BSDSTRING_H
#define UTIL_BSDSTRING_H
#ifndef NDEBUG
# undef HAVE_INLINE
#endif
#if !defined(HAVE_STRLCPY)
# ifdef HAVE_INLINE
# include "bsdstring.c"
# define HAVE_STRLCPY
# else
extern size_t strlcpy(char *dst, const char *src, size_t siz);
extern size_t strlcat(char * dst, const char * src, size_t siz);
# endif
2005-06-17 20:12:58 +02:00
#endif
#if !defined(HAVE_STRLPRINTF)
# define HAVE_STRLPRINTF
# define slprintf snprintf
#endif
#endif