diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-11-01 21:53:30 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-11-01 21:53:30 +0000 |
commit | 4d4023555b8c4e5812d2ac67242fe7754acc6def (patch) | |
tree | 17036a33b500972a312f1a5b2c75bee313f4b4d1 /utils.c | |
parent | a68250b79bf5358b7cf67bbd9185409a17993abc (diff) |
issue #4678
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6936 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'utils.c')
-rwxr-xr-x | utils.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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. |