mirror of
https://github.com/MariaDB/server.git
synced 2025-07-02 14:22:51 +03:00
sql_parse.cc, config-win.h, config-netware.h:
Don't try determine stack direction at configure time compiler_flag.m4: Use AC_TRY_COMPILE and AC_TRY_LINK instead of AC_TRY_RUN where possible misc.m4, configure.in: Use fourth argument to AC_TRY_RUN, to be used in cross compilation Don't try determine stack direction at configure time
This commit is contained in:
@ -4996,17 +4996,14 @@ bool check_merge_table_access(THD *thd, char *db,
|
||||
Check stack size; Send error if there isn't enough stack to continue
|
||||
****************************************************************************/
|
||||
|
||||
#if STACK_DIRECTION < 0
|
||||
#define used_stack(A,B) (long) (A - B)
|
||||
#else
|
||||
#define used_stack(A,B) (long) (B - A)
|
||||
#endif
|
||||
#ifndef EMBEDDED_LIBRARY
|
||||
|
||||
#define used_stack(A,B) (long)(A > B ? A - B : B - A)
|
||||
|
||||
#ifndef DBUG_OFF
|
||||
long max_stack_used;
|
||||
#endif
|
||||
|
||||
#ifndef EMBEDDED_LIBRARY
|
||||
/*
|
||||
Note: The 'buf' parameter is necessary, even if it is unused here.
|
||||
- fix_fields functions has a "dummy" buffer large enough for the
|
||||
|
Reference in New Issue
Block a user