summaryrefslogtreecommitdiff
path: root/strings/my_strtoll10.c
diff options
context:
space:
mode:
authorunknown <jani@ua141d10.elisa.omakaista.fi>2005-10-13 17:21:54 +0300
committerunknown <jani@ua141d10.elisa.omakaista.fi>2005-10-13 17:21:54 +0300
commit0d8977475630b214e2c4eecb1a33330cf9f7283b (patch)
treedfd07e9e89c2daf5726070e2bee9851a587ab661 /strings/my_strtoll10.c
parent8b6ba46c2c957ca23e4d8440e53369f485c85c86 (diff)
parentcd04dcd7bc784ba373235d3875e0294280d03b35 (diff)
downloadmariadb-git-0d8977475630b214e2c4eecb1a33330cf9f7283b.tar.gz
Merge jamppa@bk-internal.mysql.com:/home/bk/mysql-4.1
into ua141d10.elisa.omakaista.fi:/home/my/bk/mysql-4.1-tmp
Diffstat (limited to 'strings/my_strtoll10.c')
-rw-r--r--strings/my_strtoll10.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/strings/my_strtoll10.c b/strings/my_strtoll10.c
index 5217564087c..9cfb11524c1 100644
--- a/strings/my_strtoll10.c
+++ b/strings/my_strtoll10.c
@@ -19,7 +19,16 @@
#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__)
+static ulonglong ulonglong_max= ~(ulonglong) 0;
+#define ULONGLONG_MAX ulonglong_max
+#else
#define ULONGLONG_MAX (~(ulonglong) 0)
+#endif /* __NETWARE__ && __MWERKS__ */
#define MAX_NEGATIVE_NUMBER ((ulonglong) LL(0x8000000000000000))
#define INIT_CNT 9
#define LFACTOR ULL(1000000000)