diff options
author | unknown <jani@a193-229-222-105.elisa-laajakaista.fi> | 2005-09-14 16:10:56 +0300 |
---|---|---|
committer | unknown <jani@a193-229-222-105.elisa-laajakaista.fi> | 2005-09-14 16:10:56 +0300 |
commit | 423bbd6594ec22ccdbe44e806c8dd3811567e2b8 (patch) | |
tree | a51b8ea2f9ec0477a2a553e6d29b82db9d178c75 /strings | |
parent | afbfd12ed2fa93ad71a30b90ad29453cd5a2bc09 (diff) | |
download | mariadb-git-423bbd6594ec22ccdbe44e806c8dd3811567e2b8.tar.gz |
Fix for Metrowerks compiler.
Diffstat (limited to 'strings')
-rw-r--r-- | strings/my_strtoll10.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/strings/my_strtoll10.c b/strings/my_strtoll10.c index cca7c8ab396..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) |