Message-ID: <354B557A.32F1AAB9@zfs.lg.ua> Date: Sat, 02 May 1998 20:18:50 +0300 From: "Kirpa S.I." Reply-To: kirpa AT zfs DOT lg DOT ua MIME-Version: 1.0 To: Bruno Barberi Gnecco CC: djgpp AT delorie DOT com Subject: Re: 'FAR' under DJGPP References: <354a2ab1 DOT 4002764 AT news DOT unisys DOT com DOT br> Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8bit Precedence: bulk Bruno Barberi Gnecco wrote: > I'd like to output a file generated by TheDraw. It's documentation says to use: > > #include > #include > #include "file.h" // this is the file containing data > int main () { > void far *screen; > int offset = -162; t > int x; > for (x=0; x (long) screen = 0xB8000000+x*160+offset; > memcpy (screen,&IMAGEDATA[x*IMAGEDATA_WIDTH*2],IMAGEDATA_WIDTH*2); > } > } > > But DJGPP doesn't accept the FAR keyword. How do I do? > You may define in file "file.h" first line like that: #define far -- ๋ษาะม ๓.้. kirpa AT zfs DOT lg DOT ua