completely avoid usage of strnlen()

This commit is contained in:
Christian Kruse
2014-03-06 18:08:10 +01:00
parent d8b8bf0e2a
commit 164cf9d08f
4 changed files with 2 additions and 18 deletions

View File

@@ -43,9 +43,4 @@ extern int
maxlen_snprintf(char *str, const char *format,...)
__attribute__((format(PG_PRINTF_ATTRIBUTE, 2, 3)));
/* Add strnlen on platforms that don't have it, like OS X */
#ifndef strnlen
extern size_t strnlen(const char *s, size_t n);
#endif
#endif /* _STRUTIL_H_ */