Hi, yesterday, the problem that Cygwin defines advapi32 functions and therefore had a problem with WINADVAPI was fixed by introducing _ADVAPI32_.
Can we get something along the same lines for kernel32 functions as well? The reason is, Cygwin also defines a couple of kernel32 functions by itself, namely the A and W variants of CreateEvent, OpenEvent, CreateMutex, OpenMutex, CreateSemaphore, OpenSemaphore, CreateFileMapping and OpenFileMapping. Something like this seems to do the trick: Index: winbase.h =================================================================== --- winbase.h (revision 5153) +++ winbase.h (working copy) @@ -16,7 +16,14 @@ #endif #endif +#ifndef WINBASEAPI +#ifndef _KERNEL32_ #define WINBASEAPI DECLSPEC_IMPORT +#else +#define WINBASEAPI +#endif +#endif + #define ZAWPROXYAPI DECLSPEC_IMPORT #ifdef __cplusplus TIA, Corinna ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public