Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com Message-ID: <007001c0b14a$adb8a770$0200a8c0@lifelesswks> From: "Robert Collins" To: "Corinna Vinschen" References: <006501c0b120$094af0f0$0200a8c0 AT lifelesswks> <20010320152613 DOT A17995 AT cygbert DOT vinschen DOT de> Subject: Re: YANDQ Date: Wed, 21 Mar 2001 01:33:01 +1100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-OriginalArrivalTime: 20 Mar 2001 14:27:30.0503 (UTC) FILETIME=[E55AB570:01C0B149] ----- Original Message ----- From: "Corinna Vinschen" To: Sent: Wednesday, March 21, 2001 1:26 AM Subject: Re: YANDQ > > Are these specs way of base? If not, how do I go about altering > > sys/types.h (which I note appears to be part of newlib). > > We could introduce a > > #ifdef __CYGWIN__ > #include > #endif > > into newlib's sys/types.h > > and then you can use cygwin/threads.h as you like. > I shouldn't need to make many changes at all to sys/types. It's really just a matter of getting the typedefs into the correct place. I'm happy with either cygwin/thread.h or sys/types.h, but I'd prefer to put the actual typedefs into sys/types.h. > > > > The question arises because I have an external typedef which is > > different from the internal typedef. While I could type cast everything > > to make it match up (class pthread ** to void ** for instance) it reads > > a lot more easily (which helps debugging) with no casting involved. > > > > FYI the external typedefs are of the form > > typedef void * foo_t > > and the internal ones > > typedef class foo * foo_t. > > You could use > > #ifdef __INSIDE_CYGWIN__ > typedef class foo * foo_t; > #else > typedef void * foo_t; > #endif > > Corinna > > -- > Corinna Vinschen Please, send mails regarding Cygwin to > Cygwin Developer mailto:cygwin AT cygwin DOT com > Red Hat, Inc. > Thanks, that looks like it'll be handy. Rob