summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/config-win.h1
-rw-r--r--storage/maria/ma_check.c4
-rw-r--r--storage/maria/ma_dynrec.c3
-rw-r--r--storage/maria/ma_search.c2
-rw-r--r--storage/maria/ma_write.c12
-rw-r--r--storage/maria/maria_def.h2
-rw-r--r--storage/maria/maria_pack.c4
7 files changed, 14 insertions, 14 deletions
diff --git a/include/config-win.h b/include/config-win.h
index 7a50f28c932..779f02fc5a0 100644
--- a/include/config-win.h
+++ b/include/config-win.h
@@ -168,7 +168,6 @@ typedef uint rf_SetTimer;
#define Socket_defined
#define my_socket SOCKET
-#define bool BOOL
#define SIGPIPE SIGINT
#define RETQSORTTYPE void
#define QSORT_TYPE_IS_VOID
diff --git a/storage/maria/ma_check.c b/storage/maria/ma_check.c
index 7921af857be..a64e26ef781 100644
--- a/storage/maria/ma_check.c
+++ b/storage/maria/ma_check.c
@@ -1362,7 +1362,7 @@ static int check_compressed_record(HA_CHECK *param, MARIA_HA *info, int extend,
MARIA_SHARE *share= info->s;
my_off_t start_recpos, pos;
char llbuff[22];
- bool got_error= 0;
+ my_bool got_error= 0;
DBUG_ENTER("check_compressed_record");
pos= share->pack.header_length; /* Skip header */
@@ -4500,7 +4500,7 @@ static int sort_get_next_record(MARIA_SORT_PARAM *sort_param)
}
if (b_type & BLOCK_DELETED)
{
- bool error=0;
+ my_bool error=0;
if (block_info.block_len+ (uint) (block_info.filepos-pos) <
share->base.min_block_length)
{
diff --git a/storage/maria/ma_dynrec.c b/storage/maria/ma_dynrec.c
index b1c46d9b9bb..d6c6e597fdb 100644
--- a/storage/maria/ma_dynrec.c
+++ b/storage/maria/ma_dynrec.c
@@ -411,7 +411,8 @@ static int _ma_find_writepos(MARIA_HA *info,
a big block.
*/
-static bool unlink_deleted_block(MARIA_HA *info, MARIA_BLOCK_INFO *block_info)
+static my_bool unlink_deleted_block(MARIA_HA *info,
+ MARIA_BLOCK_INFO *block_info)
{
DBUG_ENTER("unlink_deleted_block");
if (block_info->filepos == info->s->state.dellink)
diff --git a/storage/maria/ma_search.c b/storage/maria/ma_search.c
index f6c75ce8eed..0ceafbf4d04 100644
--- a/storage/maria/ma_search.c
+++ b/storage/maria/ma_search.c
@@ -1564,7 +1564,7 @@ _ma_calc_var_pack_key_length(MARIA_KEYDEF *keyinfo, uint nod_flag,
length_pack,new_key_length,diff_flag,pack_marker;
const uchar *start,*end,*key_end;
uchar *sort_order;
- bool same_length;
+ my_bool same_length;
length_pack=s_temp->ref_length=s_temp->n_ref_length=s_temp->n_length=0;
same_length=0; keyseg=keyinfo->seg;
diff --git a/storage/maria/ma_write.c b/storage/maria/ma_write.c
index b07105a5d66..a2498eed05c 100644
--- a/storage/maria/ma_write.c
+++ b/storage/maria/ma_write.c
@@ -160,9 +160,9 @@ int maria_write(MARIA_HA *info, uchar *record)
{
if (maria_is_key_active(share->state.key_map, i))
{
- bool local_lock_tree= (lock_tree &&
- !(info->bulk_insert &&
- is_tree_inited(&info->bulk_insert[i])));
+ my_bool local_lock_tree= (lock_tree &&
+ !(info->bulk_insert &&
+ is_tree_inited(&info->bulk_insert[i])));
if (local_lock_tree)
{
rw_wrlock(&share->key_root_lock[i]);
@@ -271,9 +271,9 @@ err:
{
if (maria_is_key_active(share->state.key_map, i))
{
- bool local_lock_tree= (lock_tree &&
- !(info->bulk_insert &&
- is_tree_inited(&info->bulk_insert[i])));
+ my_bool local_lock_tree= (lock_tree &&
+ !(info->bulk_insert &&
+ is_tree_inited(&info->bulk_insert[i])));
if (local_lock_tree)
rw_wrlock(&share->key_root_lock[i]);
/**
diff --git a/storage/maria/maria_def.h b/storage/maria/maria_def.h
index aaf0b850f69..389295fc48e 100644
--- a/storage/maria/maria_def.h
+++ b/storage/maria/maria_def.h
@@ -744,7 +744,7 @@ typedef struct st_maria_s_param
uint n_length, totlength, part_of_prev_key, prev_length, pack_marker;
uint changed_length;
int move_length; /* For balance_page */
- bool store_not_null;
+ my_bool store_not_null;
} MARIA_KEY_PARAM;
diff --git a/storage/maria/maria_pack.c b/storage/maria/maria_pack.c
index 2cdd0eb468b..1e6e8cd3ca1 100644
--- a/storage/maria/maria_pack.c
+++ b/storage/maria/maria_pack.c
@@ -123,7 +123,7 @@ typedef struct st_isam_mrg {
extern int main(int argc,char * *argv);
static void get_options(int *argc,char ***argv);
static MARIA_HA *open_maria_file(char *name,int mode);
-static bool open_maria_files(PACK_MRG_INFO *mrg,char **names,uint count);
+static my_bool open_maria_files(PACK_MRG_INFO *mrg,char **names,uint count);
static int compress(PACK_MRG_INFO *file,char *join_name);
static HUFF_COUNTS *init_huff_count(MARIA_HA *info,my_off_t records);
static void free_counts_and_tree_and_queue(HUFF_TREE *huff_trees,
@@ -439,7 +439,7 @@ static MARIA_HA *open_maria_file(char *name,int mode)
}
-static bool open_maria_files(PACK_MRG_INFO *mrg,char **names,uint count)
+static my_bool open_maria_files(PACK_MRG_INFO *mrg,char **names,uint count)
{
uint i,j;
mrg->count=0;