From: Paul Shirley Newsgroups: comp.os.msdos.djgpp Subject: Re: Why two identical typedef are considered an error in DJGPP? Date: Thu, 16 Jan 1997 00:40:55 +0000 Organization: wot? me? Lines: 22 Distribution: world Message-ID: References: <01IE7MKQWZ2Q003361 AT cc DOT uab DOT es> Reply-To: Paul Shirley NNTP-Posting-Host: chocolat.foobar.co.uk Mime-Version: 1.0 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp In article , Matthew Mastracci > >Try encapsulating the line with a define that checks for an arbitrary >conditional (ie: BYTEdefined) and if it is not set, sets it and then >defines the conditional. > >Pseudocode: > >if not defined "BYTEdefined" >define "BYTEdefined" >declare BYTE >end if #ifndef BYTE typedef unsigned char BYTE; #endif ...is what I usually do. --- Paul Shirley: shuffle chocolat before foobar for my real email address