I was aware of POSIX subsystem, and what I mean is that I knew it existed and was removed in Windows 8.1, so I never really looked into it.
Any suggestion what to do with them? Do we try to keep them? Do we remove them? This makes me wonder if mingw toolchain was ever able to produce working executables for POSIX subsystem. If not, I would lean towards removing them. - Kirill Makurin ________________________________ From: LIU Hao Sent: Monday, January 19, 2026 6:59 PM To: [email protected]; Kirill Makurin Subject: Re: [Mingw-w64-public] Declarations guarded with _POSIX and _POSIX_ 在 2026-1-19 17:45, Kirill Makurin 写道: > Hello, > > I noticed that in many header files we have declarations guarded with _POSIX > and _POSIX_ macros. When I first saw them I thought that they were > mingw-w64's convenience macros used when user defines either _POSIX_SOURCE or > _XOPEN_SOURCE, but apparently I was mistaken. > > Does anyone know where they come from? Should we consider replacing them with > checks for _POSIX_SOURCE/_XOPEN_SOURCE instead? `_POSIX_` has been existing in Microsoft headers for many years. I suspect it is defined when compiling for the POSIX subsystem: https://blog.ret2.io/2017/09/20/subsystem-posix/ -- Best regards, LIU Hao _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
