mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-22 12:52:33 +00:00
first set of Cygwin portability stuff (issue #4678)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6547 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
|
||||
#include "asterisk/inline_api.h"
|
||||
#include "asterisk/compiler.h"
|
||||
#include "asterisk/compat.h"
|
||||
|
||||
static inline int ast_strlen_zero(const char *s)
|
||||
{
|
||||
@@ -209,25 +210,6 @@ struct ast_realloca {
|
||||
(ra)->ptr; \
|
||||
})
|
||||
|
||||
#define HAVE_VASPRINTF
|
||||
#define HAVE_STRTOQ
|
||||
|
||||
#ifdef __linux__
|
||||
#define HAVE_STRCASESTR
|
||||
#define HAVE_STRNDUP
|
||||
#define HAVE_STRNLEN
|
||||
#endif
|
||||
|
||||
#ifdef SOLARIS
|
||||
#undef HAVE_VASPRINTF
|
||||
#undef HAVE_STRTOQ
|
||||
#endif
|
||||
|
||||
#ifdef __CYGWIN__
|
||||
#undef HAVE_STRTOQ
|
||||
typedef unsigned long long uint64_t;
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_STRCASESTR
|
||||
char *strcasestr(const char *, const char *);
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user