mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 03:17:20 +02:00
Fix for Metrowerks compiler.
This commit is contained in:
parent
ee39253467
commit
e0b458de91
1 changed files with 6 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue