delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/08/27/08:59:16

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
From: Patrick Graebel <pgraebel AT stud DOT fh-dortmund DOT de>
Subject: Re: pthread.h macro bug
Date: Fri, 27 Aug 2004 15:03:27 +0200
Lines: 50
Message-ID: <cgnb64$q1l$1@sea.gmane.org>
References: <cglv1h$hu$1 AT sea DOT gmane DOT org> <20040827101855 DOT GL27978 AT cygbert DOT vinschen DOT de>
Mime-Version: 1.0
X-Complaints-To: usenet AT sea DOT gmane DOT org
X-Gmane-NNTP-Posting-Host: port-212-202-208-82.dynamic.qsc.de
User-Agent: Mozilla Thunderbird 0.7.3 (Windows/20040803)
In-Reply-To: <20040827101855.GL27978@cygbert.vinschen.de>
X-IsSubscribed: yes

Thanks for giving me a hint!

I figured it out: both macros have to be used INSIDE a "{}" code body in 
the right order. So the use like a normal function fails.

Sorry for this redundant news entry :)

-Patrick



Corinna Vinschen wrote:
> On Aug 27 02:30, Patrick Graebel wrote:
> 
>>Hi!
>>
>>The macros for pthread_cleanup_push/pop are corrupt, so that g++ 
>>(version 3.3.3) fails on '}'. Also there seems to be a space too much 
>>between macro name and macro opening bracket.
> 
> 
> $ cat > pt.cc <<EOF
> #include <pthread.h>
> 
> void
> hdl (void *arg)
> {
> }
> 
> int
> main()
> {
>   pthread_cleanup_push (hdl, 0);
>   pthread_cleanup_pop (0);
>   return 0;
> }
> EOF
> $ g++ -v
> [...]
> gcc version 3.3.3 (cygwin special)
> $ g++ -c pt.cc
> $
> 
> 
> What's the problem?  http://cygwin.com/problems.html
> 
> 
> Corinna
> 


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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