Mail Archives: djgpp/1998/03/27/18:46:35
Isaac Waldron wrote:
>
> I had this problem when I was working on my .pcx file loading routines.
> Namely, the height and width as encoded in the file is a 16-bit integer
> type, but DJGPP is 32-bits. So, what I did was I changed all the ints
> to shorts in DJGPP, which are 16-bit, and so worked perfectly.
>
> --
> Isaac Waldron <waldroni AT lr DOT net>
> http://www.geocities.com/SiliconValley/Lakes/3574/index.html
Do not forget the djgpp alignment.
If you use struct use:
#pragma pack(1) // align to char
... define your struct
#pragma pack(0) // back to default alignment
--
^ ^ ^
| | |
+-+-+ Fabrice ILPONSE
| email: fabrice AT asim DOT lip6 DOT fr
|
|
-
- Raw text -