From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17841 invoked by alias); 5 Jun 2006 18:05:53 -0000 Received: (qmail 17833 invoked by uid 22791); 5 Jun 2006 18:05:52 -0000 X-Spam-Check-By: sourceware.org Received: from efesto.telvia.it (HELO efesto.telvia.it) (213.155.209.50) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 05 Jun 2006 18:05:47 +0000 Received: from [213.155.205.167] (unverified [213.155.205.167]) by efesto.telvia.it (Vircom SMTPRS 5.3.228) with ESMTP id for ; Mon, 5 Jun 2006 20:05:40 +0200 Message-ID: <44847279.3070602@telvia.it> Date: Mon, 05 Jun 2006 18:05:00 -0000 From: Romano Paolo Tenca User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: Pthreads-Win32 list Subject: problem in pthread.h Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact pthreads-win32-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: pthreads-win32-owner@sourceware.org X-SW-Source: 2006/txt/msg00033.txt.bz2 In pthread.h 2.7.0 line 762 i find: #define pthread_cleanup_push( _rout, _arg ) \ { \ ptw32_cleanup_t _cleanup; \ \ ptw32_push_cleanup( &_cleanup, (ptw32_cleanup_callback_t) (_rout), (_arg) ); \ #define pthread_cleanup_pop( _execute ) \ (void) ptw32_pop_cleanup( _execute ); \ } It seems to me that it must be: #define pthread_cleanup_push( _rout, _arg ) \ { \ ptw32_cleanup_t _cleanup; \ ptw32_push_cleanup( &_cleanup, (ptw32_cleanup_callback_t) (_rout), (_arg) ); \ } #define pthread_cleanup_pop( _execute ) \ (void) ptw32_pop_cleanup( _execute ); -- Romano Paolo Tenca