This is the mail archive of the
mailing list for the Cygwin project.
- From: "John Emmas" <johne53 at tiscali dot co dot uk>
- To: <cygwin at cygwin dot com>
- Date: Sun, 23 Nov 2008 10:22:26 -0000
- Subject: pthread_t
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 ?
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html