diff options
Diffstat (limited to 'strings/my_strtoll10.c')
-rw-r--r-- | strings/my_strtoll10.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/strings/my_strtoll10.c b/strings/my_strtoll10.c index 5217564087c..1f4cf1435fe 100644 --- a/strings/my_strtoll10.c +++ b/strings/my_strtoll10.c @@ -19,7 +19,13 @@ #include <m_string.h> #undef ULONGLONG_MAX +/* Needed under MetroWerks Compiler, since MetroWerks compiler does not properly handle a constant expression containing a mod operator */ +#if defined(__NETWARE__) && defined(__MWERKS__) +ulonglong tmp; +#define ULONGLONG_MAX (tmp =(~(ulonglong) 0)) +#else #define ULONGLONG_MAX (~(ulonglong) 0) +#endif /* __NETWARE__ && __MWERKS__ */ #define MAX_NEGATIVE_NUMBER ((ulonglong) LL(0x8000000000000000)) #define INIT_CNT 9 #define LFACTOR ULL(1000000000) @@ -46,7 +52,7 @@ static unsigned long lfactor[9]= from string nptr and converts it to an signed or unsigned long long integer value. Space characters and tab are ignored. - A sign character might precede the the digit characters. The number + A sign character might precede the digit characters. The number may have any number of pre-zero digits. The function stops reading the string nptr at the first character |