mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-06 13:07:21 +00:00
move strtoq into new string files (bug #4740)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6171 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -198,6 +198,7 @@ struct ast_realloca {
|
||||
})
|
||||
|
||||
#define HAVE_VASPRINTF
|
||||
#define HAVE_STRTOQ
|
||||
|
||||
#ifdef __linux__
|
||||
#define HAVE_STRCASESTR
|
||||
@@ -207,6 +208,12 @@ struct ast_realloca {
|
||||
|
||||
#ifdef SOLARIS
|
||||
#undef HAVE_VASPRINTF
|
||||
#undef HAVE_STRTOQ
|
||||
#endif
|
||||
|
||||
#ifdef __CYGWIN__
|
||||
#undef HAVE_STRTOQ
|
||||
typedef unsigned long long uint64_t;
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_STRCASESTR
|
||||
@@ -225,4 +232,8 @@ size_t strnlen(const char *, size_t);
|
||||
int vasprintf(char **strp, const char *fmt, va_list ap);
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_STRTOQ
|
||||
uint64_t strtoq(const char *nptr, char **endptr, int base);
|
||||
#endif
|
||||
|
||||
#endif /* _ASTERISK_STRINGS_H */
|
||||
|
Reference in New Issue
Block a user