| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-Spam-Check-By: | sourceware.org |
| X-Trace: | 107254916/mk-filter-4.mail.uk.tiscali.com/B2C/$b2c-THROTTLED-DYNAMIC/b2c-CUSTOMER-DYNAMIC-IP/79.66.11.8/None/johne53 AT tiscali DOT co DOT uk |
| X-SBRS: | None |
| X-RemoteIP: | 79.66.11.8 |
| X-IP-MAIL-FROM: | johne53 AT tiscali DOT co DOT uk |
| X-MUA: | Microsoft Outlook Express 6.00.2900.2180Produced By Microsoft MimeOLE V6.00.2900.2180 |
| X-IP-BHB: | Once |
| X-IronPort-Anti-Spam-Filtered: | true |
| X-IronPort-Anti-Spam-Result: | ApsEAFu9KElPQgsI/2dsb2JhbACEa8oXgnw |
| X-IronPort-AV: | E=Sophos;i="4.33,653,1220223600"; d="scan'208";a="107254916" |
| Message-ID: | <003a01c94d55$62193d70$4001a8c0@mycomputer> |
| From: | "John Emmas" <johne53 AT tiscali DOT co DOT uk> |
| To: | <cygwin AT cygwin DOT com> |
| Subject: | pthread_t |
| Date: | Sun, 23 Nov 2008 10:22:26 -0000 |
| MIME-Version: | 1.0 |
| X-IsSubscribed: | yes |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| 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 |
I'm trying to compile a program in which pthread_t is expected to be
typedef long unsigned int pthread_t;
the program builds fine under Linux but when I try to compile under
Cygwin I see this error:-
conflicting declaration 'typedef long unsigned int pthread_t'
pthread_t has a previous declaration of
'typedef struct __pthread_t* pthread_t'
The file, /usr/include/cygwin/types.h does define it like this, although
/usr/include/sys/types.h defines it differently:-
typedef __uint32_t pthread_t
which seems a bit closer to what I was expecting.
I just wondered which declaration I should really be using for cygwin? The
declaration in sys/types.h or the one in cygwin/types.h ?
Thanks,
John
--
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |