[AD] Quick fix for DJGPP compilation |
[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]
Hi, Something has broken DJGPP compilation when using WARNMODE=1 - apparently, _farsetsel requires an integer argument but is being passed a pointer (?). Anyway, I simply put the relevant cast into place, so here is a one-line patch:
--- cvs-current/include/allegro/aldjgpp.h Wed Dec 13 04:59:50 2000 +++ /allegro/include/allegro/aldjgpp.h Wed Dec 13 04:56:02 2000 @@ -66,7 +66,7 @@ /* helpers for talking to video memory */ -#define bmp_select(bmp) _farsetsel(bmp->seg) +#define bmp_select(bmp) _farsetsel((int)(bmp->seg)) #define bmp_write8(addr, c) _farnspokeb(addr, c) #define bmp_write15(addr, c) _farnspokew(addr, c)
(against latest CVS at time of writing). Bye for now, -- Laurence Withers, lwithers@xxxxxxxxxx http://www.lwithers.demon.co.uk/
Attachment:
signature.asc
Description: PGP signature
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |