summaryrefslogtreecommitdiff
path: root/myisam/rt_index.h
diff options
context:
space:
mode:
authorunknown <hf@deer.(none)>2004-03-12 18:51:03 +0400
committerunknown <hf@deer.(none)>2004-03-12 18:51:03 +0400
commit0bddae2ea710f3af6d0e14b26df10309a3cd9331 (patch)
tree416c45416bcc8605ff5754473476ddabbd22fe2f /myisam/rt_index.h
parent4cf338f8b2c5236689d37924dabb0720104b561d (diff)
downloadmariadb-git-0bddae2ea710f3af6d0e14b26df10309a3cd9331.tar.gz
WL#1163 To make spatial code optional
myisam spatial code isolated myisam/mi_create.c: spatial code ifdef-ed myisam/mi_key.c: spatial code ifdef-ed myisam/mi_open.c: spatial code ifdef-ed myisam/mi_range.c: spatial code ifdef-ed myisam/mi_rkey.c: spatial code ifdef-ed myisam/mi_rnext.c: spatial code ifdef-ed myisam/mi_rnext_same.c: spatial code ifdef-ed myisam/rt_index.c: spatial code ifdef-ed myisam/rt_index.h: spatial code ifdef-ed myisam/rt_key.c: spatial code ifdef-ed myisam/rt_key.h: spatial code ifdef-ed myisam/rt_mbr.c: spatial code ifdef-ed myisam/rt_mbr.h: spatial code ifdef-ed myisam/rt_split.c: spatial code ifdef-ed myisam/rt_test.c: spatial code ifdef-ed myisam/sp_defs.h: spatial code ifdef-ed myisam/sp_key.c: spatial code ifdef-ed myisam/sp_test.c: spatial code ifdef-ed sql/spatial.cc: spatial code ifdef-ed sql/spatial.h: spatial code ifdef-ed sql/sql_yacc.yy: wrong error messages fixed
Diffstat (limited to 'myisam/rt_index.h')
-rw-r--r--myisam/rt_index.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/myisam/rt_index.h b/myisam/rt_index.h
index 1a0fce72a82..1a24c403043 100644
--- a/myisam/rt_index.h
+++ b/myisam/rt_index.h
@@ -18,6 +18,8 @@
#ifndef _rt_index_h
#define _rt_index_h
+#ifdef HAVE_RTREE_KEYS
+
#define rt_PAGE_FIRST_KEY(page, nod_flag) (page + 2 + nod_flag)
#define rt_PAGE_NEXT_KEY(key, key_length, nod_flag) (key + key_length + \
(nod_flag ? nod_flag : info->s->base.rec_reflength))
@@ -41,4 +43,5 @@ ha_rows rtree_estimate(MI_INFO *info, uint keynr, uchar *key,
int rtree_split_page(MI_INFO *info, MI_KEYDEF *keyinfo, uchar *page, uchar *key,
uint key_length, my_off_t *new_page_offs);
+#endif /*HAVE_RTREE_KEYS*/
#endif /* _rt_index_h */