Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Date: Tue, 28 Nov 2000 14:40:00 -0500
From: Christopher Faylor <cgf@redhat.com>
To: cygwin support <cygwin@cygwin.com>
Subject: Re: __attribute__ ((packed)) and enums not working
Message-ID: <20001128144000.A2886@redhat.com>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin support <cygwin@cygwin.com>
References: <20001128193251.9805.qmail@web114.yahoomail.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 <bedge@sattel.com> 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@sourceware.cygnus.com

