Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Date: Tue, 28 Nov 2000 14:40:00 -0500 From: Christopher Faylor To: cygwin support Subject: Re: __attribute__ ((packed)) and enums not working Message-ID: <20001128144000.A2886@redhat.com> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin support References: <20001128193251 DOT 9805 DOT qmail AT web114 DOT yahoomail DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.11i In-Reply-To: <20001128193251.9805.qmail@web114.yahoomail.com>; from earnie_boyd@yahoo.com on Tue, Nov 28, 2000 at 11:32:51AM -0800 On Tue, Nov 28, 2000 at 11:32:51AM -0800, Earnie Boyd wrote: >--- Bruce Edge wrote: >> The packed attribute mechanism seems to work for structs, but not enums: >> >> struct x { char c; int i; } __attribute__ ((packed)); >> enum p { red, green, yellow } __attribute__ ((packed)); >> >> pcl_op.h:144: semicolon missing after declaration of `p' >> >> Has anyone used this successfully? >> > >I don't have a problem with this. Perhaps your pcl_op.h file has \r\n line >endings and you have binary mounts. Well, if *that* is an issue then gcc is broken. This was supposed to have been handled in the newest cygwin gcc release. cgf -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com