delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/19/21:48:52

From: aho450s AT nic DOT smsu DOT edu (Tony O'Bryan)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Why two identical typedef are considered an error in DJGPP?
Date: Sun, 19 Jan 1997 14:18:49 GMT
Organization: Southwest Missouri State University
Lines: 17
Message-ID: <32e22d1c.4599867@ursa.smsu.edu>
References: <01IE7MKQWZ2Q003361 AT cc DOT uab DOT es> <Pine DOT A41 DOT 3 DOT 94 DOT 970115082052 DOT 92882A-100000 AT acs2 DOT acs DOT ucalgary DOT ca> <jRKDPBAXkX3yEw9J AT foobar DOT co DOT uk> <slrn5e086r DOT gp5 DOT davep AT hagbard DOT demon DOT co DOT uk>
NNTP-Posting-Host: forseti.i53.smsu.edu
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

On Sat, 18 Jan 1997 01:01:22 GMT, Dave Pearson <davep AT hagbard DOT demon DOT co DOT uk>
wrote:

>#ifndef BYTE
>typedef unsigned char BYTE;
>#endif
>
>#ifndef BYTE
>typedef unsigned char BYTE;
>#endif

GCC complains about a redefinition, but will allow a #define in place of the
typedef.  Turbo C allows both versions.

Sorry for the extra text, but Free Agent won't let me send a message that has
more quoted material than new. :(

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019