PKGBUILDs/community/librcc/librcc-strnlen.patch
2009-10-09 21:15:33 -05:00

17 lines
652 B
Diff

diff -wbBur librcc-0.2.6/src/rccstring.h librcc-0.2.6.qwe/src/rccstring.h
--- librcc-0.2.6/src/rccstring.h 2006-01-08 15:42:59.000000000 +0000
+++ librcc-0.2.6.qwe/src/rccstring.h 2009-09-28 08:45:37.000000000 +0000
@@ -18,13 +18,6 @@
int rccStringFixID(rcc_string string, rcc_context ctx);
int rccStringChangeID(rcc_string string, rcc_language_id language_id);
-#ifdef HAVE_STRNLEN
-# ifndef strnlen
-int strnlen(const char *str, size_t size);
-# endif /* !strnlen */
-#else
-int rccStrnlen(const char *str, size_t size);
-#endif /* HAVE_STRNLEN */
int rccIsASCII(const char *str);
size_t rccStringSizedGetChars(const char *str, size_t size);