Commit e0a79dc1 authored by venu@myvenu.com's avatar venu@myvenu.com

Windows build fix

parent 9305ee0d
...@@ -116,6 +116,10 @@ SOURCE="..\strings\ctype-big5.c" ...@@ -116,6 +116,10 @@ SOURCE="..\strings\ctype-big5.c"
# End Source File # End Source File
# Begin Source File # Begin Source File
SOURCE="..\strings\ctype-bin.c"
# End Source File
# Begin Source File
SOURCE="..\strings\ctype-czech.c" SOURCE="..\strings\ctype-czech.c"
# End Source File # End Source File
# Begin Source File # Begin Source File
...@@ -204,10 +208,6 @@ SOURCE=..\mysys\mf_cache.c ...@@ -204,10 +208,6 @@ SOURCE=..\mysys\mf_cache.c
# End Source File # End Source File
# Begin Source File # Begin Source File
SOURCE=..\mysys\mf_casecnv.c
# End Source File
# Begin Source File
SOURCE=..\mysys\mf_dirname.c SOURCE=..\mysys\mf_dirname.c
# End Source File # End Source File
# Begin Source File # Begin Source File
...@@ -422,6 +422,10 @@ SOURCE=.\select_test.c ...@@ -422,6 +422,10 @@ SOURCE=.\select_test.c
# End Source File # End Source File
# Begin Source File # Begin Source File
SOURCE=..\mysys\sha1.c
# End Source File
# Begin Source File
SOURCE=.\sql_string.cpp SOURCE=.\sql_string.cpp
# End Source File # End Source File
# Begin Source File # Begin Source File
......
...@@ -59,7 +59,6 @@ EXPORTS ...@@ -59,7 +59,6 @@ EXPORTS
list_add list_add
list_delete list_delete
max_allowed_packet max_allowed_packet
my_casecmp
my_init my_init
my_end my_end
my_strdup my_strdup
......
...@@ -127,6 +127,10 @@ SOURCE="..\strings\ctype-big5.c" ...@@ -127,6 +127,10 @@ SOURCE="..\strings\ctype-big5.c"
# End Source File # End Source File
# Begin Source File # Begin Source File
SOURCE="..\strings\ctype-bin.c"
# End Source File
# Begin Source File
SOURCE="..\strings\ctype-czech.c" SOURCE="..\strings\ctype-czech.c"
# End Source File # End Source File
# Begin Source File # Begin Source File
...@@ -219,10 +223,6 @@ SOURCE=..\strings\longlong2str.c ...@@ -219,10 +223,6 @@ SOURCE=..\strings\longlong2str.c
# End Source File # End Source File
# Begin Source File # Begin Source File
SOURCE=..\mysys\mf_casecnv.c
# End Source File
# Begin Source File
SOURCE=..\mysys\mf_dirname.c SOURCE=..\mysys\mf_dirname.c
# End Source File # End Source File
# Begin Source File # Begin Source File
...@@ -396,6 +396,10 @@ SOURCE=..\client\select_test.c ...@@ -396,6 +396,10 @@ SOURCE=..\client\select_test.c
# End Source File # End Source File
# Begin Source File # Begin Source File
SOURCE=..\mysys\sha1.c
# End Source File
# Begin Source File
SOURCE=..\client\sql_string.cpp SOURCE=..\client\sql_string.cpp
# End Source File # End Source File
# Begin Source File # Begin Source File
......
...@@ -162,10 +162,6 @@ SOURCE=.\mf_cache.c ...@@ -162,10 +162,6 @@ SOURCE=.\mf_cache.c
# End Source File # End Source File
# Begin Source File # Begin Source File
SOURCE=.\mf_casecnv.c
# End Source File
# Begin Source File
SOURCE=.\mf_dirname.c SOURCE=.\mf_dirname.c
# End Source File # End Source File
# Begin Source File # Begin Source File
...@@ -234,6 +230,10 @@ SOURCE=.\mf_strip.c ...@@ -234,6 +230,10 @@ SOURCE=.\mf_strip.c
# End Source File # End Source File
# Begin Source File # Begin Source File
SOURCE=.\mf_tempdir.c
# End Source File
# Begin Source File
SOURCE=.\mf_tempfile.c SOURCE=.\mf_tempfile.c
# End Source File # End Source File
# Begin Source File # Begin Source File
......
...@@ -488,6 +488,10 @@ SOURCE=.\item_func.cpp ...@@ -488,6 +488,10 @@ SOURCE=.\item_func.cpp
# End Source File # End Source File
# Begin Source File # Begin Source File
SOURCE=.\item_row.cpp
# End Source File
# Begin Source File
SOURCE=.\item_strfunc.cpp SOURCE=.\item_strfunc.cpp
!IF "$(CFG)" == "mysqld - Win32 Release" !IF "$(CFG)" == "mysqld - Win32 Release"
...@@ -678,26 +682,6 @@ SOURCE=.\mysqld.cpp ...@@ -678,26 +682,6 @@ SOURCE=.\mysqld.cpp
# End Source File # End Source File
# Begin Source File # Begin Source File
SOURCE=.\net_pkg.cpp
!IF "$(CFG)" == "mysqld - Win32 Release"
!ELSEIF "$(CFG)" == "mysqld - Win32 Debug"
# ADD CPP /G5
# SUBTRACT CPP /YX /Yc /Yu
!ELSEIF "$(CFG)" == "mysqld - Win32 nt"
!ELSEIF "$(CFG)" == "mysqld - Win32 Max nt"
!ELSEIF "$(CFG)" == "mysqld - Win32 Max"
!ENDIF
# End Source File
# Begin Source File
SOURCE=.\net_serv.cpp SOURCE=.\net_serv.cpp
# End Source File # End Source File
# Begin Source File # Begin Source File
...@@ -963,6 +947,10 @@ SOURCE=.\sql_handler.cpp ...@@ -963,6 +947,10 @@ SOURCE=.\sql_handler.cpp
# End Source File # End Source File
# Begin Source File # Begin Source File
SOURCE=.\sql_help.cpp
# End Source File
# Begin Source File
SOURCE=.\sql_insert.cpp SOURCE=.\sql_insert.cpp
!IF "$(CFG)" == "mysqld - Win32 Release" !IF "$(CFG)" == "mysqld - Win32 Release"
......
...@@ -104,6 +104,10 @@ SOURCE=.\bmove512.c ...@@ -104,6 +104,10 @@ SOURCE=.\bmove512.c
# End Source File # End Source File
# Begin Source File # Begin Source File
SOURCE=".\ctype-bin.c"
# End Source File
# Begin Source File
SOURCE=".\ctype-big5.c" SOURCE=".\ctype-big5.c"
# End Source File # End Source File
# Begin Source File # Begin Source File
...@@ -168,6 +172,18 @@ SOURCE=.\str2int.c ...@@ -168,6 +172,18 @@ SOURCE=.\str2int.c
# End Source File # End Source File
# Begin Source File # Begin Source File
SOURCE=.\strcend.c
# End Source File
# Begin Source File
SOURCE=.\strend.c
# End Source File
# Begin Source File
SOURCE=.\strfill.c
# End Source File
# Begin Source File
SOURCE=.\Strings.asm SOURCE=.\Strings.asm
!IF "$(CFG)" == "strings - Win32 Release" !IF "$(CFG)" == "strings - Win32 Release"
...@@ -199,6 +215,19 @@ InputName=Strings ...@@ -199,6 +215,19 @@ InputName=Strings
# End Source File # End Source File
# Begin Source File # Begin Source File
SOURCE=.\strmake.c
# End Source File
# Begin Source File
SOURCE=.\strmov.c
# End Source File
# Begin Source File
SOURCE=.\strnmov.c
# End Source File
# Begin Source File
SOURCE=.\strtol.c SOURCE=.\strtol.c
# End Source File # End Source File
# Begin Source File # Begin Source File
......
...@@ -19,14 +19,14 @@ ...@@ -19,14 +19,14 @@
#define _typelib_h #define _typelib_h
typedef struct st_typelib { /* Different types saved here */ typedef struct st_typelib { /* Different types saved here */
uint count; /* How many types */ unsigned int count; /* How many types */
const char *name; /* Name of typelib */ const char *name; /* Name of typelib */
const char **type_names; const char **type_names;
} TYPELIB; } TYPELIB;
extern int find_type(char *x,TYPELIB *typelib,uint full_name); extern int find_type(char *x,TYPELIB *typelib,unsigned int full_name);
extern void make_type(char *to,uint nr,TYPELIB *typelib); extern void make_type(char *to,unsigned int nr,TYPELIB *typelib);
extern const char *get_type(TYPELIB *typelib,uint nr); extern const char *get_type(TYPELIB *typelib,unsigned int nr);
extern TYPELIB sql_protocol_typelib; extern TYPELIB sql_protocol_typelib;
......
...@@ -62,22 +62,6 @@ static SORT_KEY_BLOCKS *alloc_key_blocks(MI_CHECK *param, uint blocks, ...@@ -62,22 +62,6 @@ static SORT_KEY_BLOCKS *alloc_key_blocks(MI_CHECK *param, uint blocks,
static ha_checksum mi_byte_checksum(const byte *buf, uint length); static ha_checksum mi_byte_checksum(const byte *buf, uint length);
static void set_data_file_type(SORT_INFO *sort_info, MYISAM_SHARE *share); static void set_data_file_type(SORT_INFO *sort_info, MYISAM_SHARE *share);
#ifdef __WIN__
static double ulonglong2double(ulonglong value)
{
longlong nr=(longlong) value;
if (nr >= 0)
return (double) nr;
return (18446744073709551616.0 + (double) nr);
}
#if SIZEOF_OFF_T > 4
#define my_off_t2double(A) ulonglong2double(A)
#else
#define my_off_t2double(A) ((double) (A))
#endif /* SIZEOF_OFF_T > 4 */
#endif /* __WIN__ */
void myisamchk_init(MI_CHECK *param) void myisamchk_init(MI_CHECK *param)
{ {
bzero((gptr) param,sizeof(*param)); bzero((gptr) param,sizeof(*param));
......
...@@ -228,7 +228,7 @@ double rtree_rect_volume(HA_KEYSEG *keyseg, uchar *a, uint key_length) ...@@ -228,7 +228,7 @@ double rtree_rect_volume(HA_KEYSEG *keyseg, uchar *a, uint key_length)
case HA_KEYTYPE_LONGLONG: case HA_KEYTYPE_LONGLONG:
RT_VOL_KORR(longlong, mi_sint8korr, 8, (double)); RT_VOL_KORR(longlong, mi_sint8korr, 8, (double));
case HA_KEYTYPE_ULONGLONG: case HA_KEYTYPE_ULONGLONG:
RT_VOL_KORR(ulonglong, mi_uint8korr, 8, ulonglong2double); RT_VOL_KORR(longlong, mi_sint8korr, 8, ulonglong2double);
#endif #endif
case HA_KEYTYPE_FLOAT: case HA_KEYTYPE_FLOAT:
RT_VOL_GET(float, mi_float4get, 4, (double)); RT_VOL_GET(float, mi_float4get, 4, (double));
...@@ -311,7 +311,7 @@ int rtree_d_mbr(HA_KEYSEG *keyseg, uchar *a, uint key_length, double *res) ...@@ -311,7 +311,7 @@ int rtree_d_mbr(HA_KEYSEG *keyseg, uchar *a, uint key_length, double *res)
case HA_KEYTYPE_LONGLONG: case HA_KEYTYPE_LONGLONG:
RT_D_MBR_KORR(longlong, mi_sint8korr, 8, (double)); RT_D_MBR_KORR(longlong, mi_sint8korr, 8, (double));
case HA_KEYTYPE_ULONGLONG: case HA_KEYTYPE_ULONGLONG:
RT_D_MBR_KORR(ulonglong, mi_uint8korr, 8, ulonglong2double); RT_D_MBR_KORR(longlong, mi_sint8korr, 8, ulonglong2double);
#endif #endif
case HA_KEYTYPE_FLOAT: case HA_KEYTYPE_FLOAT:
RT_D_MBR_GET(float, mi_float4get, 4, (double)); RT_D_MBR_GET(float, mi_float4get, 4, (double));
...@@ -516,7 +516,7 @@ double rtree_overlapping_area(HA_KEYSEG *keyseg, uchar* a, uchar* b, ...@@ -516,7 +516,7 @@ double rtree_overlapping_area(HA_KEYSEG *keyseg, uchar* a, uchar* b,
case HA_KEYTYPE_LONGLONG: case HA_KEYTYPE_LONGLONG:
RT_OVL_AREA_KORR(longlong, mi_sint8korr, 8); RT_OVL_AREA_KORR(longlong, mi_sint8korr, 8);
case HA_KEYTYPE_ULONGLONG: case HA_KEYTYPE_ULONGLONG:
RT_OVL_AREA_KORR(ulonglong, mi_uint8korr, 8); RT_OVL_AREA_KORR(longlong, mi_sint8korr, 8);
#endif #endif
case HA_KEYTYPE_FLOAT: case HA_KEYTYPE_FLOAT:
RT_OVL_AREA_GET(float, mi_float4get, 4); RT_OVL_AREA_GET(float, mi_float4get, 4);
...@@ -614,7 +614,7 @@ double rtree_area_increase(HA_KEYSEG *keyseg, uchar* a, uchar* b, ...@@ -614,7 +614,7 @@ double rtree_area_increase(HA_KEYSEG *keyseg, uchar* a, uchar* b,
case HA_KEYTYPE_LONGLONG: case HA_KEYTYPE_LONGLONG:
RT_AREA_INC_KORR(longlong, mi_sint8korr, 8); RT_AREA_INC_KORR(longlong, mi_sint8korr, 8);
case HA_KEYTYPE_ULONGLONG: case HA_KEYTYPE_ULONGLONG:
RT_AREA_INC_KORR(ulonglong, mi_uint8korr, 8); RT_AREA_INC_KORR(longlong, mi_sint8korr, 8);
#endif #endif
case HA_KEYTYPE_FLOAT: case HA_KEYTYPE_FLOAT:
RT_AREA_INC_GET(float, mi_float4get, 4); RT_AREA_INC_GET(float, mi_float4get, 4);
......
...@@ -276,7 +276,6 @@ static void display_table_locks (void) ...@@ -276,7 +276,6 @@ static void display_table_locks (void)
VOID(pthread_mutex_unlock(&lock->mutex)); VOID(pthread_mutex_unlock(&lock->mutex));
} }
VOID(pthread_mutex_unlock(&THR_LOCK_lock)); VOID(pthread_mutex_unlock(&THR_LOCK_lock));
uint i;
if (!saved_table_locks.elements) goto end; if (!saved_table_locks.elements) goto end;
qsort((gptr) dynamic_element(&saved_table_locks,0,TABLE_LOCK_INFO *),saved_table_locks.elements,sizeof(TABLE_LOCK_INFO),(qsort_cmp) dl_compare); qsort((gptr) dynamic_element(&saved_table_locks,0,TABLE_LOCK_INFO *),saved_table_locks.elements,sizeof(TABLE_LOCK_INFO),(qsort_cmp) dl_compare);
...@@ -284,6 +283,7 @@ static void display_table_locks (void) ...@@ -284,6 +283,7 @@ static void display_table_locks (void)
puts("\nThread database.table_name Locked/Waiting Lock_type\n"); puts("\nThread database.table_name Locked/Waiting Lock_type\n");
unsigned int i;
for (i=0 ; i < saved_table_locks.elements ; i++) for (i=0 ; i < saved_table_locks.elements ; i++)
{ {
TABLE_LOCK_INFO *dl_ptr=dynamic_element(&saved_table_locks,i,TABLE_LOCK_INFO*); TABLE_LOCK_INFO *dl_ptr=dynamic_element(&saved_table_locks,i,TABLE_LOCK_INFO*);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment