mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 04:11:08 +00:00
issue #4678
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6936 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
7
utils.c
7
utils.c
@@ -44,6 +44,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
|
||||
#include "asterisk/logger.h"
|
||||
#include "asterisk/md5.h"
|
||||
#include "asterisk/options.h"
|
||||
#include "asterisk/compat.h"
|
||||
|
||||
#define AST_API_MODULE /* ensure that inlinable API functions will be built in this module if required */
|
||||
#include "asterisk/strings.h"
|
||||
@@ -57,7 +58,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
|
||||
static char base64[64];
|
||||
static char b2a[256];
|
||||
|
||||
#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined( __NetBSD__ ) || defined(__APPLE__)
|
||||
#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined( __NetBSD__ ) || defined(__APPLE__) || defined(__CYGWIN__)
|
||||
|
||||
/* duh? ERANGE value copied from web... */
|
||||
#define ERANGE 34
|
||||
@@ -741,10 +742,14 @@ int vasprintf(char **strp, const char *fmt, va_list ap)
|
||||
#endif /* !defined(HAVE_VASPRINTF) && !defined(__AST_DEBUG_MALLOC) */
|
||||
|
||||
#ifndef HAVE_STRTOQ
|
||||
#ifndef LONG_MIN
|
||||
#define LONG_MIN (-9223372036854775807L-1L)
|
||||
/* min value of a "long int" */
|
||||
#endif
|
||||
#ifndef LONG_MAX
|
||||
#define LONG_MAX 9223372036854775807L
|
||||
/* max value of a "long int" */
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Convert a string to a quad integer.
|
||||
|
Reference in New Issue
Block a user