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:
Kevin P. Fleming
2005-09-08 02:19:02 +00:00
parent b9c919ca3e
commit 4c2377ddd9
11 changed files with 117 additions and 44 deletions

View File

@@ -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