public inbox for cygwin-developers@cygwin.com
 help / color / mirror / Atom feed
* Conflicting definition of THREAD_INFORMATION_CLASS?
@ 2013-10-25 18:16 Bryan Chua
  2013-10-25 18:41 ` Corinna Vinschen
  0 siblings, 1 reply; 2+ messages in thread
From: Bryan Chua @ 2013-10-25 18:16 UTC (permalink / raw)
  To: cygwin-developers

I am trying to build cygwin DLL and I keep running into a conflicting definition of THREAD_INFORMATION_CLASS:

From /usr/include/w32api/winbase.h
typedef enum _THREAD_INFORMATION_CLASS {
  ThreadMemoryPriority,
  ThreadAbsoluteCpuPriority,
  ThreadInformationClassMax
} THREAD_INFORMATION_CLASS;

From src/winsup/cygwin/ntdll.h
typedef enum _THREAD_INFORMATION_CLASS
{
  ThreadBasicInformation = 0,
  ThreadTimes = 1,
  ThreadImpersonationToken = 5
} THREAD_INFORMATION_CLASS, *PTHREAD_INFORMATION_CLASS;

Which one is correct, or have I installed too many/too few packages?

Thanks!

-- bryan

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Conflicting definition of THREAD_INFORMATION_CLASS?
  2013-10-25 18:16 Conflicting definition of THREAD_INFORMATION_CLASS? Bryan Chua
@ 2013-10-25 18:41 ` Corinna Vinschen
  0 siblings, 0 replies; 2+ messages in thread
From: Corinna Vinschen @ 2013-10-25 18:41 UTC (permalink / raw)
  To: cygwin-developers

[-- Attachment #1: Type: text/plain, Size: 939 bytes --]

On Oct 25 18:16, Bryan Chua wrote:
> I am trying to build cygwin DLL and I keep running into a conflicting definition of THREAD_INFORMATION_CLASS:
> 
> From /usr/include/w32api/winbase.h
> typedef enum _THREAD_INFORMATION_CLASS {
>   ThreadMemoryPriority,
>   ThreadAbsoluteCpuPriority,
>   ThreadInformationClassMax
> } THREAD_INFORMATION_CLASS;
> 
> From src/winsup/cygwin/ntdll.h
> typedef enum _THREAD_INFORMATION_CLASS
> {
>   ThreadBasicInformation = 0,
>   ThreadTimes = 1,
>   ThreadImpersonationToken = 5
> } THREAD_INFORMATION_CLASS, *PTHREAD_INFORMATION_CLASS;
> 
> Which one is correct, or have I installed too many/too few packages?

winbase.h is correct.  ntdll.h should use the officially correct type
name THREADINFOCLASS.  Fixed in CVS.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-10-25 18:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-25 18:16 Conflicting definition of THREAD_INFORMATION_CLASS? Bryan Chua
2013-10-25 18:41 ` Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).