diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2005-07-15 00:39:01 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2005-07-15 00:39:01 +0000 |
commit | b6486df40eb4e37d20c387ad386248231383f0e8 (patch) | |
tree | 991a3938a32d6c27484076dd80d878ebad6f9010 /include | |
parent | dcfabce0e457430a96412e45701c6b0ac6bd6903 (diff) |
first phase of proper fix for portable string function problems (bug #4669)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6133 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include')
-rwxr-xr-x | include/asterisk/strings.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/include/asterisk/strings.h b/include/asterisk/strings.h index 2b845a837..f6902ef1b 100755 --- a/include/asterisk/strings.h +++ b/include/asterisk/strings.h @@ -199,8 +199,12 @@ struct ast_realloca { #ifdef __linux__ #define ast_strcasestr strcasestr -#else -extern char *ast_strcasestr(const char *, const char *); -#endif /* __linux__ */ +#define ast_strndup strndup +#define ast_strnlen strnlen +#else /* !__linux__ */ +char *ast_strcasestr(const char *, const char *); +char *ast_strndup(const char *, size_t); +size_t ast_strnlen(const char *, size_t); +#endif /* !__linux__ */ #endif /* _ASTERISK_STRINGS_H */ |