summaryrefslogtreecommitdiff
path: root/strings/my_strtoll10.c
diff options
context:
space:
mode:
authorunknown <jani@a193-229-222-105.elisa-laajakaista.fi>2005-09-14 16:10:56 +0300
committerunknown <jani@a193-229-222-105.elisa-laajakaista.fi>2005-09-14 16:10:56 +0300
commit423bbd6594ec22ccdbe44e806c8dd3811567e2b8 (patch)
treea51b8ea2f9ec0477a2a553e6d29b82db9d178c75 /strings/my_strtoll10.c
parentafbfd12ed2fa93ad71a30b90ad29453cd5a2bc09 (diff)
downloadmariadb-git-423bbd6594ec22ccdbe44e806c8dd3811567e2b8.tar.gz
Fix for Metrowerks compiler.
Diffstat (limited to 'strings/my_strtoll10.c')
-rw-r--r--strings/my_strtoll10.c6
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)