H
HEnk
Hi,
I have a Borland BCB3 program that has structs with enums.
The default behaviour of BCB3 is that the sizeof an enum will be 1 byte if
the maximum value fits in 8 bits. I am now porting this code to vc6. In vc6,
enums seem to be always 4 bytes.
Because the structs are stored in files (in BCB3 format = 1 byte per enum),
I need to get the VC6 compiler to use also a size of 1 byte for those enums.
I cannot find an appropiate cl switch.
My question is, is there a way to do this?
Thanks, Henk
I have a Borland BCB3 program that has structs with enums.
The default behaviour of BCB3 is that the sizeof an enum will be 1 byte if
the maximum value fits in 8 bits. I am now porting this code to vc6. In vc6,
enums seem to be always 4 bytes.
Because the structs are stored in files (in BCB3 format = 1 byte per enum),
I need to get the VC6 compiler to use also a size of 1 byte for those enums.
I cannot find an appropiate cl switch.
My question is, is there a way to do this?
Thanks, Henk