mirror of
https://github.com/MariaDB/server.git
synced 2026-05-14 19:07:15 +02:00
Fix for 64 bit machines (To remove warnings on Itanium)
mysys/thr_alarm.c: Safety fix
This commit is contained in:
parent
6fea1f3373
commit
6f8e0d1364
2 changed files with 6 additions and 0 deletions
|
|
@ -634,7 +634,12 @@ extern double my_atof(const char*);
|
|||
Max size that must be added to a so that we know Size to make
|
||||
adressable obj.
|
||||
*/
|
||||
#if SIZEOF_CHARP == 4
|
||||
typedef long my_ptrdiff_t;
|
||||
#else
|
||||
typedef long long my_ptrdiff_t;
|
||||
#endif
|
||||
|
||||
#define MY_ALIGN(A,L) (((A) + (L) - 1) & ~((L) - 1))
|
||||
#define ALIGN_SIZE(A) MY_ALIGN((A),sizeof(double))
|
||||
/* Size to make adressable obj. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue