On Fri, Jul 07, 2023 at 04:48:08PM +0100, Jon Turney via Cygwin wrote: > On 06/07/2023 00:08, Brian Inglis via Cygwin wrote: > > > > I have no idea why both compilers would include w32api headers as if > > they were building Mingw cross compilers! > > You are allowed to use the Win32 API in Cygwin programs (with some caveats).
Interesting. Is there some collected wisdom somewhere to which you could point me? (specifically the caveats) My code runs under cygwin and I more recently ported it to native Windows. Windows is not POSIX, but does provide a hodge-podge of functions named the same as POSIX function, sometimes with slightly different behavior and sometimes with slightly different function signatures (!). For performance under cygwin, it is desirable to use Windows-native API when the cygwin layer is a simple translation compatibility layer from POSIX to Windows API. However, Windows is not simple, and seemingly never invested in creating a stable and functional set of POSIX-like interfaces, and is one of the reasons cygwin is so useful to bridge that gapping chasm. Cheers, Glenn -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple