On Oct 9, 2011, at 12:37 PM, GrahamC wrote: > Don't forget that quite a few MySQL data structure members are C long types > which are 64 bit on x86_64. > > So if you want code to work on x86_64 as well as x86 it needs a type alias. > > For example in st_net these members: > > struct st_net > { > Vio *vio; > ubyte *buff; > ubyte *buff_end; > ubyte *write_pos; > ubyte *read_pos; > SOCKET fd; > uint remain_in_buf; <<< > uint length; <<< > uint buf_length; <<< > uint where_b; <<< > uint max_packet; <<< > uint max_packet_size; <<< > > > are 32 bit on x86 and 64 bit on x86_64
So use core.stdc.config.c_long? Or is this type not actually a C long but rather a typedef that varies in some other way?