mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-06 13:07:21 +00:00
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
This commit is contained in:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user