summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSergey Petrunya <psergey@askmonty.org>2009-09-16 23:05:03 +0400
committerSergey Petrunya <psergey@askmonty.org>2009-09-16 23:05:03 +0400
commit2f93e7cd3f67684f0466d5cb5ec27dcea0851091 (patch)
tree6a2e5a0b9e4b773ca14168adb6b48cf4bc9aa426 /include
parent370aa40f2c5df1d164bf59d0dce6ff5c2ba00ca0 (diff)
downloadmariadb-git-2f93e7cd3f67684f0466d5cb5ec27dcea0851091.tar.gz
MWL#17: Table elimination: fixes for windows
include/my_global.h: MWL#17: Table elimination: fixes for windows - Add ALIGN_MAX_UNIT (assume malloc returns data aligned to this much) mysql-test/r/table_elim.result: MWL#17: Table elimination: fixes for windows - Use only lower-case as EXPLAIN [EXTENDED] changes case of table names on windows mysql-test/t/table_elim.test: MWL#17: Table elimination: fixes for windows - Use only lower-case as EXPLAIN [EXTENDED] changes case of table names on windows sql/opt_table_elimination.cc: MWL#17: Table elimination: fixes for windows - Add extra alignment-padding-space for stack-allocated buffers.
Diffstat (limited to 'include')
-rw-r--r--include/my_global.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/my_global.h b/include/my_global.h
index 19dfce67e42..597a3a803c1 100644
--- a/include/my_global.h
+++ b/include/my_global.h
@@ -925,6 +925,7 @@ typedef long long my_ptrdiff_t;
#define MY_ALIGN(A,L) (((A) + (L) - 1) & ~((L) - 1))
#define ALIGN_SIZE(A) MY_ALIGN((A),sizeof(double))
+#define ALIGN_MAX_UNIT (sizeof(double))
/* Size to make adressable obj. */
#define ALIGN_PTR(A, t) ((t*) MY_ALIGN((A), sizeof(double)))
#define OFFSET(t, f) ((size_t)(char *)&((t *)0)->f)